import{r as t,h as i,g as n,c as e,H as o}from"./core-d7b5d411.js";const r=class{constructor(i){t(this,i),this.isVisible=!1}handleKeyDown(t){this.isVisible&&("Escape"!==t.key?"Tab"===t.key&&this.handleTabKey(t):this.dispatchCloseEvent())}handleTabKey(t){const i=document.getElementById("page-content-modal");if(!i)return;const n='button:not([disabled]), a[href]:not([href="javascript:void(0)"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',e=i.querySelectorAll(n),o=Array.from(e),r=this.host.shadowRoot.querySelectorAll(n),s=[...o,...Array.from(r)];if(0===s.length)return;const a=s[0],l=s[s.length-1];t.shiftKey?document.activeElement===a&&(t.preventDefault(),l.focus()):document.activeElement!==l&&this.host.shadowRoot.activeElement!==l||(t.preventDefault(),a.focus())}dispatchCloseEvent(){this.host.dispatchEvent(new CustomEvent("closeAccessibilityModal",{bubbles:!0,composed:!0}))}componentDidUpdate(){this.isVisible&&this.h2Ref&&requestAnimationFrame(()=>{this.h2Ref.focus()})}render(){return i("div",null,i("h2",{class:"withColor",id:"accessibilityModal",tabindex:"-1",ref:t=>this.h2Ref=t},"הצהרת נגישות"),i("p",null,"רשות המסים רואה חשיבות רבה במתן שירות שוויוני לאנשים עם מוגבלות. הנגשת האתר, נועדה להפוך את השירותים והמידע הדיגיטליים לזמינים, ידידותיים ונוחים יותר לשימוש עבור אנשים עם מוגבלות."),"רמת הנגישות",i("p",null,'האתר עומד בדרישות תקנות שוויון זכויות לאנשים עם מוגבלות (התאמות נגישות לשירות), התשע"ג 2013 (להלן: "התקנות") ברמת AA, וכן, מיישם את המלצות מסמך WCAG2.0 מאת ארגון W3C.'),i("h3",{class:"withColor"},"תיקונים והתאמות נגישות שבוצעו"),i("ul",null,i("li",null,"אמצעי הניווט באתר פשוטים וברורים."),i("li",null,"האתר מאפשר שימוש באמצעות קוראי מסך. האתר נבדק באמצעות קורא המסך JAWS."),i("li",null,"תכני האתר כתובים באופן ברור, מסודר והיררכי. במידת הצורך קיימים הסברים לצד התוכן."," "),i("li",null,"האתר מותאם לצפייה בדפדפנים מודרניים."),i("li",null,"התאמת האתר לתצוגה תואמת מגוון מסכים ורזולוציות."),i("li",null,"תוכן האתר כתוב בשפה פשוטה וברורה."),i("li",null,"לכל התמונות באתר יש הסבר טקסטואלי חלופי (alt)."),i("li",null,"האתר מאפשר שינוי גודל הגופן על ידי שימוש במקש Ctrl וגלגלת העכבר."),i("li",null,"אין באתר שימוש בתצוגת טקסט נע או מהבהב.")),i("h3",null,"החרגות"),i("p",null,"חשוב לציין, כי למרות מאמצינו להנגיש את כלל הדפים באתר וביתר הנכסים הדיגיטליים שלנו, ייתכן שיתגלו חלקים או יכולות שלא הונגשו כראוי או שטרם הונגשו."),i("p",null,i("span",null,"במערכת הזדהות לקוח, קיימת בעיה ידועה אחת בשימוש בקורא מסך ובמקלדת כאשר יש שגיאה בפרטי כרטיס אשראי. בדרך כלל אנו משתדלים להעביר את המשתמש לשדה השגוי, מטעמי נוחות, אולם במקרה ספציפי זה אין אפשרות לעשות כך ולכן משתמשי קוראי מסך ומשתמשי מקלדת מתבקשים ללחוץ מספר פעמים על מקשי SHIFT ו TAB כדי להגיע אל השדה או השדות השגויים.")),i("h3",{class:"withColor"},"יצירת קשר בנושא נגישות האתר"),i("p",null,"אם נתקלתם בבעיה בנושא נגישות באתר או באחד ממוצרינו, נשמח לקבל הערות ובקשות, באמצעות פנייה לאחראי הנגישות בדואר האלקטרוני",i("a",{href:"mailto:ravivbe2@taxes.gov.il"},"ravivbe2@taxes.gov.il")," ."," "),i("p",null,"כדי שנוכל לטפל בבעיה בדרך הטובה ביותר, אנו ממליצים מאוד לצרף פרטים מלאים ככל שניתן:"),i("ul",null,i("li",null,"תיאור הבעיה."),i("li",null,"מהי הפעולה שניסיתם לבצע."),i("li",null,"קישור לדף שבו גלשתם."),i("li",null,"סוג הדפדפן וגרסתו."),i("li",null,"מערכת הפעלה."),i("li",null,"סוג הטכנולוגיה המסייעת (במידה והשתמשתם).")),i("h3",null,"פרטי רכז הנגישות:"),i("p",{class:"mb-0"},"רכז נגישות ביחידות אגף מס הכנסה ומיסוי מקרקעין מר רביב בן אשר בדואר אלקטרוני:"," ",i("a",{href:"mailto:ravivbe2@taxes.gov.il"},"ravivbe2@taxes.gov.il")," או בטלפון - 074-7615727"),i("p",null,i("p",null,"תאריך עדכון ההצהרה - ",i("b",null,"03/12/2025")),i("a",{href:"https://www.gov.il/he/departments/general/accessibility-declaration",target:"_blank",rel:"noopener noreferrer"},"למידע על נגישות ברשות המיסים")))}get host(){return n(this)}},s={button:{htmlType:"button",class:"btn"},checkbox:{htmlType:"div",class:"form-check",parentClass:"form-check"},divbutton:{htmlType:"a",class:"divbutton"},input:{htmlType:"input",class:"form-control"},radio:{htmlType:"input",class:"form-check-input",parentClass:"form-check"},select:{htmlType:"div",class:"select-group"},switch:{htmlType:"input",class:"form-check-input",parentClass:"form-switch"}},a=class{constructor(n){t(this,n),this.open=!1,this.prefix="shaam-",this.valid=[],this.invalid=[],this.scan=()=>{this.clear();const t=Array.prototype.slice.call(document.querySelectorAll("*")).filter(t=>this.isValidElement(t)),i=document.createElement("style");i.type="text/css",document.head.appendChild(i),t.forEach(t=>{t.setAttribute("qa-valid","true"),i.innerHTML+="\n      [qa-valid] {\n        position: relative;\n      }\n      [qa-valid]::after{\n        content: '';\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 15px;\n        height: 15px;\n        border-radius: 50%;\n        background-color: #2de000;\n        border: 1px solid white;\n        pointer-events: none;\n      }"})},this.focusElement=t=>{const i=t.element;i.scrollIntoView({behavior:"smooth",block:"center"}),i.style.outline="4px dashed orange"},this.renderSelection=(t,n,e)=>n.length?i("div",{class:"section"},i("h4",null,t),n.map(t=>i("div",{class:`item ${e}`,onClick:()=>this.focusElement(t)},t.className))):null}clear(){document.querySelectorAll("[qa-valid]").forEach(t=>t.removeAttribute("qa-valid"));const t=document.querySelector("style");t.parentNode.removeChild(t)}isValidElement(t){if(t.tagName.match(/^shaam-/i))return!0;for(const i in s){const n=s[i];if(n.htmlType==t.tagName.toLowerCase()&&t.className.includes(n.class))return!n.parentClass||t.parentElement.className.includes(n.parentClass)}return!1}render(){return i("div",{class:"class-scanner-wrapper"},i("button",{class:"fab",onClick:()=>this.open=!this.open,"aria-label":"Class Scanner"},"🔍"),this.open&&i("div",{class:"panel"},i("button",{class:"scan",onClick:this.scan},"החל סריקה"),i("button",{class:"clear",onClick:this.clear},"נקה סריקה"),i("div",{class:"results"},this.renderSelection("תקינים",this.valid,"valid"),this.renderSelection("לא תקינים",this.invalid,"invalid"))))}static get style(){return":host{all:initial}.class-scanner-wrapper{position:fixed;right:20px;bottom:20px;z-index:999999}.fab{width:56px;height:56px;border-radius:50%;background:#f1f1f1;color:#fff;font-size:20px;border:none;cursor:pointer;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.3);box-shadow:0 4px 12px rgba(0,0,0,.3)}.panel{position:absolute;bottom:70px;right:0;width:320px;max-height:400px;overflow:auto;background:#fff;border-radius:12px;-webkit-box-shadow:0 10px 30px rgba(0,0,0,.2);box-shadow:0 10px 30px rgba(0,0,0,.2);padding:12px}input{width:50%;margin-bottom:8px;margin-left:auto;margin-right:auto;padding:6px}.scan{width:100%;padding:8px;background:#007bff;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:400}.scan:hover{background:#0062ca}.clear{width:100%;padding:8px;background:#cbcbcb;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:400}.scan:hover{background:#b0b0b0}.section{margin-top:12px}h4{margin:6px 0;font-size:14px}.item{font-size:12px;padding:4px;border-radius:4px;cursor:pointer}.item:hover{background:#f0f0f0}.valid{color:green}.invalid{color:red}"}},l=class{constructor(i){t(this,i),this.showModal=!1}componentDidLoad(){this.getHost()}handleClose(){this.showModal=!1,document.getElementById("custom-modal-container").classList.add("d-none");const t=document.getElementById("page-content-modal");if(t){t.classList.remove("show"),t.style.display="none";const i=document.querySelector(".modal-backdrop");i&&i.parentElement.removeChild(i)}document.body.classList.remove("modal-open"),document.body.removeAttribute("style"),document.removeEventListener("keydown",this.handleKeyDown.bind(this)),this.findMain(),requestAnimationFrame(()=>{this.triggerButton&&this.triggerButton.focus()})}handleClick(){this.showModal=!0,document.getElementById("custom-modal-container").classList.remove("d-none");const t=document.getElementById("page-content-modal");if(t){t.classList.add("show"),t.style.display="block";const i=document.createElement("div");i.classList.add("modal-backdrop","fade","show"),document.body.appendChild(i),document.body.classList.add("modal-open"),document.addEventListener("keydown",this.handleKeyDown.bind(this))}}handleKeyDown(t){"Escape"===t.key&&this.handleClose()}getClassScannerComp(){if(["sh-app-qa","cvwebqa","ctswebqa"].some(t=>{var i;return null===(i=this.host)||void 0===i?void 0:i.includes(t)}))return i("class-scanner-component",null)}render(){return"INTERNET"==this.appEnvironment?i("div",null,this.getClassScannerComp(),i("footer",{class:"footer",id:"footer"},i("div",null,i("ul",null,i("li",null,i("a",{id:"homePage",href:"http://www.taxes.gov.il"},"עמוד הבית")),i("li",{id:"mapatHaatarLi"},i("a",{id:"mapatHaatar",href:"https://www.misim.gov.il/ShaamMaster2010/copyRights.html"},"© כל הזכויות שמורות")),i("li",{id:"zorKesherLi"},i("a",{id:"zorKesher",href:"http://www.gov.il","aria-label":"gov.il"},i("img",{src:this.logo,alt:"gov.il"}))),i("li",{class:"accessibilityStatement"},i("a",{role:"button","aria-haspopup":"dialog",href:"javascript:void(0)",onClick:this.handleClick.bind(this)},"הצהרת נגישות")),i("li",{class:"last"},i("a",{href:"javascript:void(0)",onClick:()=>this.findMain()},"לראש העמוד"))))),i("div",{class:"custom-modal-container d-none",id:"custom-modal-container"},i("div",{class:"modal fade",id:"page-content-modal",role:"dialog",tabindex:"-1","aria-modal":"true","aria-labelledby":"accessibilityModal1","aria-hidden":"true",style:{display:"none"}},i("div",{class:"modal-dialog modal-xl",role:"document"},i("div",{class:"modal-content modal-content-dialog p-3 text-right",role:"alert"},i("button",{type:"button",class:"bi-x-lg i-btn-frame align-self-end","data-dismiss":"modal","aria-label":"סגירת חלון הצהרת נגישות",onClick:this.handleClose.bind(this)}),i("h2",{class:"d-none",id:"accessibilityModal1"},"חלון הצהרת נגישות"),i("additional-page",{isVisible:this.showModal})))))):i("footer",{class:"footer",id:"footer"},this.getClassScannerComp(),i("div",null,i("ul",null,i("li",null,i("a",{id:"homePage",href:"http://shaamain"},"עמוד הבית")),i("li",{class:"last"},i("a",{href:"javascript:void(0)",onClick:()=>this.findMain()},"לראש העמוד")))))}getHost(){var t;this.host=window.location.host.toLowerCase(),t=this.host.includes("localhost")?"shaamwebt":this.host;var i=location.protocol;this.logo=i+"//"+t+"/ShaamStylesLib/images/govil2.png"}findMain(){var t;(t=document.getElementById("page-content")).setAttribute("tabindex","-1"),t.focus(),window.scrollTo(0,0)}handleCloseAccessibilityModal(t){t.stopPropagation(),this.handleClose()}static get style(){return".custom-modal-container{.modal{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;top:10%!important}.modal-dialog{max-width:90%;margin:1.75 rem}.modal-content-dialog{max-height:80vh;overflow-y:auto}.modal-open{overflow:hidden}}"}};var u,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=(function(t){
/*!
 * jQuery JavaScript Library v3.6.4
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-03-08T15:28Z
 */
!function(i,n){t.exports=i.document?n(i,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}}("undefined"!=typeof window?window:c,(function(t,i){var n=[],e=Object.getPrototypeOf,o=n.slice,r=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},s=n.push,a=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d=c.toString,h=d.call(Object),f={},p=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},m=t.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function g(t,i,n){var e,o,r=(n=n||m).createElement("script");if(r.text=t,i)for(e in b)(o=i[e]||i.getAttribute&&i.getAttribute(e))&&r.setAttribute(e,o);n.head.appendChild(r).parentNode.removeChild(r)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t}var y=function(t,i){return new y.fn.init(t,i)};function x(t){var i=!!t&&"length"in t&&t.length,n=w(t);return!p(t)&&!v(t)&&("array"===n||0===i||"number"==typeof i&&i>0&&i-1 in t)}y.fn=y.prototype={jquery:"3.6.4",constructor:y,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var i=y.merge(this.constructor(),t);return i.prevObject=this,i},each:function(t){return y.each(this,t)},map:function(t){return this.pushStack(y.map(this,(function(i,n){return t.call(i,n,i)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(y.grep(this,(function(t,i){return(i+1)%2})))},odd:function(){return this.pushStack(y.grep(this,(function(t,i){return i%2})))},eq:function(t){var i=this.length,n=+t+(t<0?i:0);return this.pushStack(n>=0&&n<i?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},y.extend=y.fn.extend=function(){var t,i,n,e,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||p(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(i in t)e=t[i],"__proto__"!==i&&s!==e&&(u&&e&&(y.isPlainObject(e)||(o=Array.isArray(e)))?(n=s[i],r=o&&!Array.isArray(n)?[]:o||y.isPlainObject(n)?n:{},o=!1,s[i]=y.extend(u,r,e)):void 0!==e&&(s[i]=e));return s},y.extend({expando:"jQuery"+("3.6.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var i,n;return!(!t||"[object Object]"!==u.call(t)||(i=e(t))&&("function"!=typeof(n=c.call(i,"constructor")&&i.constructor)||d.call(n)!==h))},isEmptyObject:function(t){var i;for(i in t)return!1;return!0},globalEval:function(t,i,n){g(t,{nonce:i&&i.nonce},n)},each:function(t,i){var n,e=0;if(x(t))for(n=t.length;e<n&&!1!==i.call(t[e],e,t[e]);e++);else for(e in t)if(!1===i.call(t[e],e,t[e]))break;return t},makeArray:function(t,i){var n=i||[];return null!=t&&(x(Object(t))?y.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,i,n){return null==i?-1:a.call(i,t,n)},merge:function(t,i){for(var n=+i.length,e=0,o=t.length;e<n;e++)t[o++]=i[e];return t.length=o,t},grep:function(t,i,n){for(var e=[],o=0,r=t.length,s=!n;o<r;o++)!i(t[o],o)!==s&&e.push(t[o]);return e},map:function(t,i,n){var e,o,s=0,a=[];if(x(t))for(e=t.length;s<e;s++)null!=(o=i(t[s],s,n))&&a.push(o);else for(s in t)null!=(o=i(t[s],s,n))&&a.push(o);return r(a)},guid:1,support:f}),"function"==typeof Symbol&&(y.fn[Symbol.iterator]=n[Symbol.iterator]),y.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,i){l["[object "+i+"]"]=i.toLowerCase()}));var S=
/*!
 * Sizzle CSS Selector Engine v2.3.10
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2023-02-14
 */
function(t){var i,n,e,o,r,s,a,l,u,c,d,h,f,p,v,m,b,g,w,y="sizzle"+1*new Date,x=t.document,S=0,k=0,C=lt(),T=lt(),j=lt(),E=lt(),O=function(t,i){return t===i&&(d=!0),0},D={}.hasOwnProperty,A=[],N=A.pop,L=A.push,$=A.push,_=A.slice,R=function(t,i){for(var n=0,e=t.length;n<e;n++)if(t[n]===i)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+I+"*("+F+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+I+"*\\]",P=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",z=new RegExp(I+"+","g"),q=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),H=new RegExp("^"+I+"*,"+I+"*"),U=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),G=new RegExp(I+"|>"),K=new RegExp(P),B=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,it=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,i){var n="0x"+t.slice(1)-65536;return i||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,i){return i?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){h()},st=yt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{$.apply(A=_.call(x.childNodes),x.childNodes)}catch(Tt){$={apply:A.length?function(t,i){L.apply(t,_.call(i))}:function(t,i){for(var n=t.length,e=0;t[n++]=i[e++];);t.length=n-1}}}function at(t,i,e,o){var r,a,u,c,d,p,b,g=i&&i.ownerDocument,x=i?i.nodeType:9;if(e=e||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return e;if(!o&&(h(i),i=i||f,v)){if(11!==x&&(d=Z.exec(t)))if(r=d[1]){if(9===x){if(!(u=i.getElementById(r)))return e;if(u.id===r)return e.push(u),e}else if(g&&(u=g.getElementById(r))&&w(i,u)&&u.id===r)return e.push(u),e}else{if(d[2])return $.apply(e,i.getElementsByTagName(t)),e;if((r=d[3])&&n.getElementsByClassName&&i.getElementsByClassName)return $.apply(e,i.getElementsByClassName(r)),e}if(n.qsa&&!E[t+" "]&&(!m||!m.test(t))&&(1!==x||"object"!==i.nodeName.toLowerCase())){if(b=t,g=i,1===x&&(G.test(t)||U.test(t))){for((g=tt.test(t)&&bt(i.parentNode)||i)===i&&n.scope||((c=i.getAttribute("id"))?c=c.replace(et,ot):i.setAttribute("id",c=y)),a=(p=s(t)).length;a--;)p[a]=(c?"#"+c:":scope")+" "+wt(p[a]);b=p.join(",")}try{return $.apply(e,g.querySelectorAll(b)),e}catch(S){E(t,!0)}finally{c===y&&i.removeAttribute("id")}}}return l(t.replace(q,"$1"),i,e,o)}function lt(){var t=[];return function i(n,o){return t.push(n+" ")>e.cacheLength&&delete i[t.shift()],i[n+" "]=o}}function ut(t){return t[y]=!0,t}function ct(t){var i=f.createElement("fieldset");try{return!!t(i)}catch(Tt){return!1}finally{i.parentNode&&i.parentNode.removeChild(i),i=null}}function dt(t,i){for(var n=t.split("|"),o=n.length;o--;)e.attrHandle[n[o]]=i}function ht(t,i){var n=i&&t,e=n&&1===t.nodeType&&1===i.nodeType&&t.sourceIndex-i.sourceIndex;if(e)return e;if(n)for(;n=n.nextSibling;)if(n===i)return-1;return t?1:-1}function ft(t){return function(i){return"input"===i.nodeName.toLowerCase()&&i.type===t}}function pt(t){return function(i){var n=i.nodeName.toLowerCase();return("input"===n||"button"===n)&&i.type===t}}function vt(t){return function(i){return"form"in i?i.parentNode&&!1===i.disabled?"label"in i?"label"in i.parentNode?i.parentNode.disabled===t:i.disabled===t:i.isDisabled===t||i.isDisabled!==!t&&st(i)===t:i.disabled===t:"label"in i&&i.disabled===t}}function mt(t){return ut((function(i){return i=+i,ut((function(n,e){for(var o,r=t([],n.length,i),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(e[o]=n[o]))}))}))}function bt(t){return t&&void 0!==t.getElementsByTagName&&t}for(i in n=at.support={},r=at.isXML=function(t){var i=t&&(t.ownerDocument||t).documentElement;return!J.test(t&&t.namespaceURI||i&&i.nodeName||"HTML")},h=at.setDocument=function(t){var i,o,s=t?t.ownerDocument||t:x;return s!=f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,v=!r(f),x!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),n.scope=ct((function(t){return p.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.cssHas=ct((function(){try{return f.querySelector(":has(*,:jqfake)"),!1}catch(Tt){return!0}})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(f.getElementsByClassName),n.getById=ct((function(t){return p.appendChild(t).id=y,!f.getElementsByName||!f.getElementsByName(y).length})),n.getById?(e.filter.ID=function(t){var i=t.replace(it,nt);return function(t){return t.getAttribute("id")===i}},e.find.ID=function(t,i){if(void 0!==i.getElementById&&v){var n=i.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var i=t.replace(it,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===i}},e.find.ID=function(t,i){if(void 0!==i.getElementById&&v){var n,e,o,r=i.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=i.getElementsByName(t),e=0;r=o[e++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),e.find.TAG=n.getElementsByTagName?function(t,i){return void 0!==i.getElementsByTagName?i.getElementsByTagName(t):n.qsa?i.querySelectorAll(t):void 0}:function(t,i){var n,e=[],o=0,r=i.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&e.push(n);return e}return r},e.find.CLASS=n.getElementsByClassName&&function(t,i){if(void 0!==i.getElementsByClassName&&v)return i.getElementsByClassName(t)},b=[],m=[],(n.qsa=Q.test(f.querySelectorAll))&&(ct((function(t){var i;p.appendChild(t).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+I+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+I+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+y+"-]").length||m.push("~="),(i=f.createElement("input")).setAttribute("name",""),t.appendChild(i),t.querySelectorAll("[name='']").length||m.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var i=f.createElement("input");i.setAttribute("type","hidden"),t.appendChild(i).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+I+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Q.test(g=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=g.call(t,"*"),g.call(t,"[s!='']:x"),b.push("!=",P)})),n.cssHas||m.push(":has"),m=m.length&&new RegExp(m.join("|")),b=b.length&&new RegExp(b.join("|")),i=Q.test(p.compareDocumentPosition),w=i||Q.test(p.contains)?function(t,i){var n=9===t.nodeType&&t.documentElement||t,e=i&&i.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,i){if(i)for(;i=i.parentNode;)if(i===t)return!0;return!1},O=i?function(t,i){if(t===i)return d=!0,0;var e=!t.compareDocumentPosition-!i.compareDocumentPosition;return e||(1&(e=(t.ownerDocument||t)==(i.ownerDocument||i)?t.compareDocumentPosition(i):1)||!n.sortDetached&&i.compareDocumentPosition(t)===e?t==f||t.ownerDocument==x&&w(x,t)?-1:i==f||i.ownerDocument==x&&w(x,i)?1:c?R(c,t)-R(c,i):0:4&e?-1:1)}:function(t,i){if(t===i)return d=!0,0;var n,e=0,o=t.parentNode,r=i.parentNode,s=[t],a=[i];if(!o||!r)return t==f?-1:i==f?1:o?-1:r?1:c?R(c,t)-R(c,i):0;if(o===r)return ht(t,i);for(n=t;n=n.parentNode;)s.unshift(n);for(n=i;n=n.parentNode;)a.unshift(n);for(;s[e]===a[e];)e++;return e?ht(s[e],a[e]):s[e]==x?-1:a[e]==x?1:0},f):f},at.matches=function(t,i){return at(t,null,null,i)},at.matchesSelector=function(t,i){if(h(t),n.matchesSelector&&v&&!E[i+" "]&&(!b||!b.test(i))&&(!m||!m.test(i)))try{var e=g.call(t,i);if(e||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return e}catch(Tt){E(i,!0)}return at(i,f,null,[t]).length>0},at.contains=function(t,i){return(t.ownerDocument||t)!=f&&h(t),w(t,i)},at.attr=function(t,i){(t.ownerDocument||t)!=f&&h(t);var o=e.attrHandle[i.toLowerCase()],r=o&&D.call(e.attrHandle,i.toLowerCase())?o(t,i,!v):void 0;return void 0!==r?r:n.attributes||!v?t.getAttribute(i):(r=t.getAttributeNode(i))&&r.specified?r.value:null},at.escape=function(t){return(t+"").replace(et,ot)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var i,e=[],o=0,r=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(O),d){for(;i=t[r++];)i===t[r]&&(o=e.push(r));for(;o--;)t.splice(e[o],1)}return c=null,t},o=at.getText=function(t){var i,n="",e=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;i=t[e++];)n+=o(i);return n},(e=at.selectors={cacheLength:50,createPseudo:ut,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(it,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var i,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&K.test(n)&&(i=s(n,!0))&&(i=n.indexOf(")",n.length-i)-n.length)&&(t[0]=t[0].slice(0,i),t[2]=n.slice(0,i)),t.slice(0,3))}},filter:{TAG:function(t){var i=t.replace(it,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===i}},CLASS:function(t){var i=C[t+" "];return i||(i=new RegExp("(^|"+I+")"+t+"("+I+"|$)"))&&C(t,(function(t){return i.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,i,n){return function(e){var o=at.attr(e,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,i,n,e,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===i;return 1===e&&0===o?function(t){return!!t.parentNode}:function(i,n,l){var u,c,d,h,f,p,v=r!==s?"nextSibling":"previousSibling",m=i.parentNode,b=a&&i.nodeName.toLowerCase(),g=!l&&!a,w=!1;if(m){if(r){for(;v;){for(h=i;h=h[v];)if(a?h.nodeName.toLowerCase()===b:1===h.nodeType)return!1;p=v="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&g){for(w=(f=(u=(c=(d=(h=m)[y]||(h[y]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===S&&u[1])&&u[2],h=f&&m.childNodes[f];h=++f&&h&&h[v]||(w=f=0)||p.pop();)if(1===h.nodeType&&++w&&h===i){c[t]=[S,f,w];break}}else if(g&&(w=f=(u=(c=(d=(h=i)[y]||(h[y]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===S&&u[1]),!1===w)for(;(h=++f&&h&&h[v]||(w=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==b:1!==h.nodeType)||!++w||(g&&((c=(d=h[y]||(h[y]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[S,w]),h!==i)););return(w-=o)===e||w%e==0&&w/e>=0}}},PSEUDO:function(t,i){var n,o=e.pseudos[t]||e.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return o[y]?o(i):o.length>1?(n=[t,t,"",i],e.setFilters.hasOwnProperty(t.toLowerCase())?ut((function(t,n){for(var e,r=o(t,i),s=r.length;s--;)t[e=R(t,r[s])]=!(n[e]=r[s])})):function(t){return o(t,0,n)}):o}},pseudos:{not:ut((function(t){var i=[],n=[],e=a(t.replace(q,"$1"));return e[y]?ut((function(t,i,n,o){for(var r,s=e(t,null,o,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(i[a]=r))})):function(t,o,r){return i[0]=t,e(i,null,r,n),i[0]=null,!n.pop()}})),has:ut((function(t){return function(i){return at(t,i).length>0}})),contains:ut((function(t){return t=t.replace(it,nt),function(i){return(i.textContent||o(i)).indexOf(t)>-1}})),lang:ut((function(t){return B.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(it,nt).toLowerCase(),function(i){var n;do{if(n=v?i.lang:i.getAttribute("xml:lang")||i.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((i=i.parentNode)&&1===i.nodeType);return!1}})),target:function(i){var n=t.location&&t.location.hash;return n&&n.slice(1)===i.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:vt(!1),disabled:vt(!0),checked:function(t){var i=t.nodeName.toLowerCase();return"input"===i&&!!t.checked||"option"===i&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return V.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var i=t.nodeName.toLowerCase();return"input"===i&&"button"===t.type||"button"===i},text:function(t){var i;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(i=t.getAttribute("type"))||"text"===i.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,i){return[i-1]})),eq:mt((function(t,i,n){return[n<0?n+i:n]})),even:mt((function(t,i){for(var n=0;n<i;n+=2)t.push(n);return t})),odd:mt((function(t,i){for(var n=1;n<i;n+=2)t.push(n);return t})),lt:mt((function(t,i,n){for(var e=n<0?n+i:n>i?i:n;--e>=0;)t.push(e);return t})),gt:mt((function(t,i,n){for(var e=n<0?n+i:n;++e<i;)t.push(e);return t}))}}).pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[i]=ft(i);for(i in{submit:!0,reset:!0})e.pseudos[i]=pt(i);function gt(){}function wt(t){for(var i=0,n=t.length,e="";i<n;i++)e+=t[i].value;return e}function yt(t,i,n){var e=i.dir,o=i.next,r=o||e,s=n&&"parentNode"===r,a=k++;return i.first?function(i,n,o){for(;i=i[e];)if(1===i.nodeType||s)return t(i,n,o);return!1}:function(i,n,l){var u,c,d,h=[S,a];if(l){for(;i=i[e];)if((1===i.nodeType||s)&&t(i,n,l))return!0}else for(;i=i[e];)if(1===i.nodeType||s)if(c=(d=i[y]||(i[y]={}))[i.uniqueID]||(d[i.uniqueID]={}),o&&o===i.nodeName.toLowerCase())i=i[e]||i;else{if((u=c[r])&&u[0]===S&&u[1]===a)return h[2]=u[2];if(c[r]=h,h[2]=t(i,n,l))return!0}return!1}}function xt(t){return t.length>1?function(i,n,e){for(var o=t.length;o--;)if(!t[o](i,n,e))return!1;return!0}:t[0]}function St(t,i,n,e,o){for(var r,s=[],a=0,l=t.length,u=null!=i;a<l;a++)(r=t[a])&&(n&&!n(r,e,o)||(s.push(r),u&&i.push(a)));return s}function kt(t,i,n,e,o,r){return e&&!e[y]&&(e=kt(e)),o&&!o[y]&&(o=kt(o,r)),ut((function(r,s,a,l){var u,c,d,h=[],f=[],p=s.length,v=r||function(t,i,n){for(var e=0,o=i.length;e<o;e++)at(t,i[e],n);return n}(i||"*",a.nodeType?[a]:a,[]),m=!t||!r&&i?v:St(v,h,t,a,l),b=n?o||(r?t:p||e)?[]:s:m;if(n&&n(m,b,a,l),e)for(u=St(b,f),e(u,[],a,l),c=u.length;c--;)(d=u[c])&&(b[f[c]]=!(m[f[c]]=d));if(r){if(o||t){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(m[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?R(r,d):h[c])>-1&&(r[u]=!(s[u]=d))}}else b=St(b===s?b.splice(p,b.length):b),o?o(null,s,b,l):$.apply(s,b)}))}function Ct(t){for(var i,n,o,r=t.length,s=e.relative[t[0].type],a=s||e.relative[" "],l=s?1:0,c=yt((function(t){return t===i}),a,!0),d=yt((function(t){return R(i,t)>-1}),a,!0),h=[function(t,n,e){var o=!s&&(e||n!==u)||((i=n).nodeType?c(t,n,e):d(t,n,e));return i=null,o}];l<r;l++)if(n=e.relative[t[l].type])h=[yt(xt(h),n)];else{if((n=e.filter[t[l].type].apply(null,t[l].matches))[y]){for(o=++l;o<r&&!e.relative[t[o].type];o++);return kt(l>1&&xt(h),l>1&&wt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(q,"$1"),n,l<o&&Ct(t.slice(l,o)),o<r&&Ct(t=t.slice(o)),o<r&&wt(t))}h.push(n)}return xt(h)}return gt.prototype=e.filters=e.pseudos,e.setFilters=new gt,s=at.tokenize=function(t,i){var n,o,r,s,a,l,u,c=T[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],u=e.preFilter;a;){for(s in n&&!(o=H.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=U.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(q," ")}),a=a.slice(n.length)),e.filter)!(o=X[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return i?a.length:a?at.error(t):T(t,l).slice(0)},a=at.compile=function(t,i){var n,o=[],r=[],a=j[t+" "];if(!a){for(i||(i=s(t)),n=i.length;n--;)(a=Ct(i[n]))[y]?o.push(a):r.push(a);(a=j(t,function(t,i){var n=i.length>0,o=t.length>0,r=function(r,s,a,l,c){var d,p,m,b=0,g="0",w=r&&[],y=[],x=u,k=r||o&&e.find.TAG("*",c),C=S+=null==x?1:Math.random()||.1,T=k.length;for(c&&(u=s==f||s||c);g!==T&&null!=(d=k[g]);g++){if(o&&d){for(p=0,s||d.ownerDocument==f||(h(d),a=!v);m=t[p++];)if(m(d,s||f,a)){l.push(d);break}c&&(S=C)}n&&((d=!m&&d)&&b--,r&&w.push(d))}if(b+=g,n&&g!==b){for(p=0;m=i[p++];)m(w,y,s,a);if(r){if(b>0)for(;g--;)w[g]||y[g]||(y[g]=N.call(l));y=St(y)}$.apply(l,y),c&&!r&&y.length>0&&b+i.length>1&&at.uniqueSort(l)}return c&&(S=C,u=x),w};return n?ut(r):r}(r,o))).selector=t}return a},l=at.select=function(t,i,n,o){var r,l,u,c,d,h="function"==typeof t&&t,f=!o&&s(t=h.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===i.nodeType&&v&&e.relative[l[1].type]){if(!(i=(e.find.ID(u.matches[0].replace(it,nt),i)||[])[0]))return n;h&&(i=i.parentNode),t=t.slice(l.shift().value.length)}for(r=X.needsContext.test(t)?0:l.length;r--&&!e.relative[c=(u=l[r]).type];)if((d=e.find[c])&&(o=d(u.matches[0].replace(it,nt),tt.test(l[0].type)&&bt(i.parentNode)||i))){if(l.splice(r,1),!(t=o.length&&wt(l)))return $.apply(n,o),n;break}}return(h||a(t,f))(o,i,!v,n,!i||tt.test(t)&&bt(i.parentNode)||i),n},n.sortStable=y.split("").sort(O).join("")===y,n.detectDuplicates=!!d,h(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,i,n){if(!n)return t.getAttribute(i,"type"===i.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,i,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||dt(M,(function(t,i,n){var e;if(!n)return!0===t[i]?i.toLowerCase():(e=t.getAttributeNode(i))&&e.specified?e.value:null})),at}(t);y.find=S,y.expr=S.selectors,y.expr[":"]=y.expr.pseudos,y.uniqueSort=y.unique=S.uniqueSort,y.text=S.getText,y.isXMLDoc=S.isXML,y.contains=S.contains,y.escapeSelector=S.escape;var k=function(t,i,n){for(var e=[],o=void 0!==n;(t=t[i])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&y(t).is(n))break;e.push(t)}return e},C=function(t,i){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==i&&n.push(t);return n},T=y.expr.match.needsContext;function j(t,i){return t.nodeName&&t.nodeName.toLowerCase()===i.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,i,n){return p(i)?y.grep(t,(function(t,e){return!!i.call(t,e,t)!==n})):i.nodeType?y.grep(t,(function(t){return t===i!==n})):"string"!=typeof i?y.grep(t,(function(t){return a.call(i,t)>-1!==n})):y.filter(i,t,n)}y.filter=function(t,i,n){var e=i[0];return n&&(t=":not("+t+")"),1===i.length&&1===e.nodeType?y.find.matchesSelector(e,t)?[e]:[]:y.find.matches(t,y.grep(i,(function(t){return 1===t.nodeType})))},y.fn.extend({find:function(t){var i,n,e=this.length,o=this;if("string"!=typeof t)return this.pushStack(y(t).filter((function(){for(i=0;i<e;i++)if(y.contains(o[i],this))return!0})));for(n=this.pushStack([]),i=0;i<e;i++)y.find(t,o[i],n);return e>1?y.uniqueSort(n):n},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&T.test(t)?y(t):t||[],!1).length}});var D,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(y.fn.init=function(t,i,n){var e,o;if(!t)return this;if(n=n||D,"string"==typeof t){if(!(e="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:A.exec(t))||!e[1]&&i)return!i||i.jquery?(i||n).find(t):this.constructor(i).find(t);if(e[1]){if(y.merge(this,y.parseHTML(e[1],(i=i instanceof y?i[0]:i)&&i.nodeType?i.ownerDocument||i:m,!0)),E.test(e[1])&&y.isPlainObject(i))for(e in i)p(this[e])?this[e](i[e]):this.attr(e,i[e]);return this}return(o=m.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):p(t)?void 0!==n.ready?n.ready(t):t(y):y.makeArray(t,this)}).prototype=y.fn,D=y(m);var N=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function $(t,i){for(;(t=t[i])&&1!==t.nodeType;);return t}y.fn.extend({has:function(t){var i=y(t,this),n=i.length;return this.filter((function(){for(var t=0;t<n;t++)if(y.contains(this,i[t]))return!0}))},closest:function(t,i){var n,e=0,o=this.length,r=[],s="string"!=typeof t&&y(t);if(!T.test(t))for(;e<o;e++)for(n=this[e];n&&n!==i;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&y.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?y.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?a.call(y(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,i){return this.pushStack(y.uniqueSort(y.merge(this.get(),y(t,i))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),y.each({parent:function(t){var i=t.parentNode;return i&&11!==i.nodeType?i:null},parents:function(t){return k(t,"parentNode")},parentsUntil:function(t,i,n){return k(t,"parentNode",n)},next:function(t){return $(t,"nextSibling")},prev:function(t){return $(t,"previousSibling")},nextAll:function(t){return k(t,"nextSibling")},prevAll:function(t){return k(t,"previousSibling")},nextUntil:function(t,i,n){return k(t,"nextSibling",n)},prevUntil:function(t,i,n){return k(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&e(t.contentDocument)?t.contentDocument:(j(t,"template")&&(t=t.content||t),y.merge([],t.childNodes))}},(function(t,i){y.fn[t]=function(n,e){var o=y.map(this,i,n);return"Until"!==t.slice(-5)&&(e=n),e&&"string"==typeof e&&(o=y.filter(e,o)),this.length>1&&(L[t]||y.uniqueSort(o),N.test(t)&&o.reverse()),this.pushStack(o)}}));var _=/[^\x20\t\r\n\f]+/g;function R(t){return t}function M(t){throw t}function I(t,i,n,e){var o;try{t&&p(o=t.promise)?o.call(t).done(i).fail(n):t&&p(o=t.then)?o.call(t,i,n):i.apply(void 0,[t].slice(e))}catch(t){n.apply(void 0,[t])}}y.Callbacks=function(t){t="string"==typeof t?function(t){var i={};return y.each(t.match(_)||[],(function(t,n){i[n]=!0})),i}(t):y.extend({},t);var i,n,e,o,r=[],s=[],a=-1,l=function(){for(o=o||t.once,e=i=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=r.length,n=!1);t.memory||(n=!1),i=!1,o&&(r=n?[]:"")},u={add:function(){return r&&(n&&!i&&(a=r.length-1,s.push(n)),function i(n){y.each(n,(function(n,e){p(e)?t.unique&&u.has(e)||r.push(e):e&&e.length&&"string"!==w(e)&&i(e)}))}(arguments),n&&!i&&l()),this},remove:function(){return y.each(arguments,(function(t,i){for(var n;(n=y.inArray(i,r,n))>-1;)r.splice(n,1),n<=a&&a--})),this},has:function(t){return t?y.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||i||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),i||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!e}};return u},y.extend({Deferred:function(i){var n=[["notify","progress",y.Callbacks("memory"),y.Callbacks("memory"),2],["resolve","done",y.Callbacks("once memory"),y.Callbacks("once memory"),0,"resolved"],["reject","fail",y.Callbacks("once memory"),y.Callbacks("once memory"),1,"rejected"]],e="pending",o={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return y.Deferred((function(i){y.each(n,(function(n,e){var o=p(t[e[4]])&&t[e[4]];r[e[1]]((function(){var t=o&&o.apply(this,arguments);t&&p(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(i,e,o){var r=0;function s(i,n,e,o){return function(){var a=this,l=arguments,u=function(){var t,u;if(!(i<r)){if((t=e.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");p(u=t&&("object"==typeof t||"function"==typeof t)&&t.then)?o?u.call(t,s(r,n,R,o),s(r,n,M,o)):u.call(t,s(++r,n,R,o),s(r,n,M,o),s(r,n,R,n.notifyWith)):(e!==R&&(a=void 0,l=[t]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(t){y.Deferred.exceptionHook&&y.Deferred.exceptionHook(t,c.stackTrace),i+1>=r&&(e!==M&&(a=void 0,l=[t]),n.rejectWith(a,l))}};i?c():(y.Deferred.getStackHook&&(c.stackTrace=y.Deferred.getStackHook()),t.setTimeout(c))}}return y.Deferred((function(t){n[0][3].add(s(0,t,p(o)?o:R,t.notifyWith)),n[1][3].add(s(0,t,p(i)?i:R)),n[2][3].add(s(0,t,p(e)?e:M))})).promise()},promise:function(t){return null!=t?y.extend(t,o):o}},r={};return y.each(n,(function(t,i){var s=i[2],a=i[5];o[i[1]]=s.add,a&&s.add((function(){e=a}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),s.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=s.fireWith})),o.promise(r),i&&i.call(r,r),r},when:function(t){var i=arguments.length,n=i,e=Array(n),r=o.call(arguments),s=y.Deferred(),a=function(t){return function(n){e[t]=this,r[t]=arguments.length>1?o.call(arguments):n,--i||s.resolveWith(e,r)}};if(i<=1&&(I(t,s.done(a(n)).resolve,s.reject,!i),"pending"===s.state()||p(r[n]&&r[n].then)))return s.then();for(;n--;)I(r[n],a(n),s.reject);return s.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;y.Deferred.exceptionHook=function(i,n){t.console&&t.console.warn&&i&&F.test(i.name)&&t.console.warn("jQuery.Deferred exception: "+i.message,i.stack,n)},y.readyException=function(i){t.setTimeout((function(){throw i}))};var W=y.Deferred();function P(){m.removeEventListener("DOMContentLoaded",P),t.removeEventListener("load",P),y.ready()}y.fn.ready=function(t){return W.then(t).catch((function(t){y.readyException(t)})),this},y.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--y.readyWait:y.isReady)||(y.isReady=!0,!0!==t&&--y.readyWait>0||W.resolveWith(m,[y]))}}),y.ready.then=W.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(y.ready):(m.addEventListener("DOMContentLoaded",P),t.addEventListener("load",P));var z=function(t,i,n,e,o,r,s){var a=0,l=t.length,u=null==n;if("object"===w(n))for(a in o=!0,n)z(t,i,a,n[a],!0,r,s);else if(void 0!==e&&(o=!0,p(e)||(s=!0),u&&(s?(i.call(t,e),i=null):(u=i,i=function(t,i,n){return u.call(y(t),n)})),i))for(;a<l;a++)i(t[a],n,s?e:e.call(t[a],a,i(t[a],n)));return o?t:u?i.call(t):l?i(t[0],n):r},q=/^-ms-/,H=/-([a-z])/g;function U(t,i){return i.toUpperCase()}function G(t){return t.replace(q,"ms-").replace(H,U)}var K=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function B(){this.expando=y.expando+B.uid++}B.uid=1,B.prototype={cache:function(t){var i=t[this.expando];return i||(i={},K(t)&&(t.nodeType?t[this.expando]=i:Object.defineProperty(t,this.expando,{value:i,configurable:!0}))),i},set:function(t,i,n){var e,o=this.cache(t);if("string"==typeof i)o[G(i)]=n;else for(e in i)o[G(e)]=i[e];return o},get:function(t,i){return void 0===i?this.cache(t):t[this.expando]&&t[this.expando][G(i)]},access:function(t,i,n){return void 0===i||i&&"string"==typeof i&&void 0===n?this.get(t,i):(this.set(t,i,n),void 0!==n?n:i)},remove:function(t,i){var n,e=t[this.expando];if(void 0!==e){if(void 0!==i){n=(i=Array.isArray(i)?i.map(G):(i=G(i))in e?[i]:i.match(_)||[]).length;for(;n--;)delete e[i[n]]}(void 0===i||y.isEmptyObject(e))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var i=t[this.expando];return void 0!==i&&!y.isEmptyObject(i)}};var X=new B,J=new B,Y=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/[A-Z]/g;function Q(t,i,n){var e;if(void 0===n&&1===t.nodeType)if(e="data-"+i.replace(V,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(e))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Y.test(t)?JSON.parse(t):t)}(n)}catch(o){}J.set(t,i,n)}else n=void 0;return n}y.extend({hasData:function(t){return J.hasData(t)||X.hasData(t)},data:function(t,i,n){return J.access(t,i,n)},removeData:function(t,i){J.remove(t,i)},_data:function(t,i,n){return X.access(t,i,n)},_removeData:function(t,i){X.remove(t,i)}}),y.fn.extend({data:function(t,i){var n,e,o,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(o=J.get(r),1===r.nodeType&&!X.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(e=s[n].name).indexOf("data-")&&(e=G(e.slice(5)),Q(r,e,o[e]));X.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){J.set(this,t)})):z(this,(function(i){var n;if(r&&void 0===i)return void 0!==(n=J.get(r,t))?n:void 0!==(n=Q(r,t))?n:void 0;this.each((function(){J.set(this,t,i)}))}),null,i,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),y.extend({queue:function(t,i,n){var e;if(t)return e=X.get(t,i=(i||"fx")+"queue"),n&&(!e||Array.isArray(n)?e=X.access(t,i,y.makeArray(n)):e.push(n)),e||[]},dequeue:function(t,i){var n=y.queue(t,i=i||"fx"),e=n.length,o=n.shift(),r=y._queueHooks(t,i);"inprogress"===o&&(o=n.shift(),e--),o&&("fx"===i&&n.unshift("inprogress"),delete r.stop,o.call(t,(function(){y.dequeue(t,i)}),r)),!e&&r&&r.empty.fire()},_queueHooks:function(t,i){var n=i+"queueHooks";return X.get(t,n)||X.access(t,n,{empty:y.Callbacks("once memory").add((function(){X.remove(t,[i+"queue",n])}))})}}),y.fn.extend({queue:function(t,i){var n=2;return"string"!=typeof t&&(i=t,t="fx",n--),arguments.length<n?y.queue(this[0],t):void 0===i?this:this.each((function(){var n=y.queue(this,t,i);y._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&y.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){y.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,i){var n,e=1,o=y.Deferred(),r=this,s=this.length,a=function(){--e||o.resolveWith(r,[r])};for("string"!=typeof t&&(i=t,t=void 0),t=t||"fx";s--;)(n=X.get(r[s],t+"queueHooks"))&&n.empty&&(e++,n.empty.add(a));return a(),o.promise(i)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,tt=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=m.documentElement,et=function(t){return y.contains(t.ownerDocument,t)},ot={composed:!0};nt.getRootNode&&(et=function(t){return y.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var rt=function(t,i){return"none"===(t=i||t).style.display||""===t.style.display&&et(t)&&"none"===y.css(t,"display")};function st(t,i,n,e){var o,r,s=20,a=e?function(){return e.cur()}:function(){return y.css(t,i,"")},l=a(),u=n&&n[3]||(y.cssNumber[i]?"":"px"),c=t.nodeType&&(y.cssNumber[i]||"px"!==u&&+l)&&tt.exec(y.css(t,i));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;s--;)y.style(t,i,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;y.style(t,i,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],e&&(e.unit=u,e.start=c,e.end=o)),o}var at={};function lt(t){var i,n=t.ownerDocument,e=t.nodeName,o=at[e];return o||(i=n.body.appendChild(n.createElement(e)),o=y.css(i,"display"),i.parentNode.removeChild(i),"none"===o&&(o="block"),at[e]=o,o)}function ut(t,i){for(var n,e,o=[],r=0,s=t.length;r<s;r++)(e=t[r]).style&&(n=e.style.display,i?("none"===n&&(o[r]=X.get(e,"display")||null,o[r]||(e.style.display="")),""===e.style.display&&rt(e)&&(o[r]=lt(e))):"none"!==n&&(o[r]="none",X.set(e,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}y.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){rt(this)?y(this).show():y(this).hide()}))}});var ct,dt,ht=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;ct=m.createDocumentFragment().appendChild(m.createElement("div")),(dt=m.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ct.appendChild(dt),f.checkClone=ct.cloneNode(!0).cloneNode(!0).lastChild.checked,ct.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ct.cloneNode(!0).lastChild.defaultValue,ct.innerHTML="<option></option>",f.option=!!ct.lastChild;var vt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function mt(t,i){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(i||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(i||"*"):[],void 0===i||i&&j(t,i)?y.merge([t],n):n}function bt(t,i){for(var n=0,e=t.length;n<e;n++)X.set(t[n],"globalEval",!i||X.get(i[n],"globalEval"))}vt.tbody=vt.tfoot=vt.colgroup=vt.caption=vt.thead,vt.th=vt.td,f.option||(vt.optgroup=vt.option=[1,"<select multiple='multiple'>","</select>"]);var gt=/<|&#?\w+;/;function wt(t,i,n,e,o){for(var r,s,a,l,u,c,d=i.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===w(r))y.merge(h,r.nodeType?[r]:r);else if(gt.test(r)){for(s=s||d.appendChild(i.createElement("div")),a=(ft.exec(r)||["",""])[1].toLowerCase(),s.innerHTML=(l=vt[a]||vt._default)[1]+y.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;y.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(i.createTextNode(r));for(d.textContent="",f=0;r=h[f++];)if(e&&y.inArray(r,e)>-1)o&&o.push(r);else if(u=et(r),s=mt(d.appendChild(r),"script"),u&&bt(s),n)for(c=0;r=s[c++];)pt.test(r.type||"")&&n.push(r);return d}var yt=/^([^.]*)(?:\.(.+)|)/;function xt(){return!0}function St(){return!1}function kt(t,i){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===i)}function Ct(t,i,n,e,o,r){var s,a;if("object"==typeof i){for(a in"string"!=typeof n&&(e=e||n,n=void 0),i)Ct(t,a,n,e,i[a],r);return t}if(null==e&&null==o?(o=n,e=n=void 0):null==o&&("string"==typeof n?(o=e,e=void 0):(o=e,e=n,n=void 0)),!1===o)o=St;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return y().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=y.guid++)),t.each((function(){y.event.add(this,i,o,e,n)}))}function Tt(t,i,n){n?(X.set(t,i,!1),y.event.add(t,i,{namespace:!1,handler:function(t){var e,r,s=X.get(this,i);if(1&t.isTrigger&&this[i]){if(s.length)(y.event.special[i]||{}).delegateType&&t.stopPropagation();else if(s=o.call(arguments),X.set(this,i,s),e=n(this,i),this[i](),s!==(r=X.get(this,i))||e?X.set(this,i,!1):r={},s!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else s.length&&(X.set(this,i,{value:y.event.trigger(y.extend(s[0],y.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===X.get(t,i)&&y.event.add(t,i,xt)}y.event={global:{},add:function(t,i,n,e,o){var r,s,a,l,u,c,d,h,f,p,v,m=X.get(t);if(K(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&y.find.matchesSelector(nt,o),n.guid||(n.guid=y.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(i){return void 0!==y&&y.event.triggered!==i.type?y.event.dispatch.apply(t,arguments):void 0}),u=(i=(i||"").match(_)||[""]).length;u--;)f=v=(a=yt.exec(i[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=y.event.special[f]||{},d=y.event.special[f=(o?d.delegateType:d.bindType)||f]||{},c=y.extend({type:f,origType:v,data:e,handler:n,guid:n.guid,selector:o,needsContext:o&&y.expr.match.needsContext.test(o),namespace:p.join(".")},r),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,e,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,c):h.push(c),y.event.global[f]=!0)},remove:function(t,i,n,e,o){var r,s,a,l,u,c,d,h,f,p,v,m=X.hasData(t)&&X.get(t);if(m&&(l=m.events)){for(u=(i=(i||"").match(_)||[""]).length;u--;)if(f=v=(a=yt.exec(i[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=y.event.special[f]||{},h=l[f=(e?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)c=h[r],!o&&v!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||e&&e!==c.selector&&("**"!==e||!c.selector)||(h.splice(r,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||y.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)y.event.remove(t,f+i[u],n,e,!0);y.isEmptyObject(l)&&X.remove(t,"handle events")}},dispatch:function(t){var i,n,e,o,r,s,a=new Array(arguments.length),l=y.event.fix(t),u=(X.get(this,"events")||Object.create(null))[l.type]||[],c=y.event.special[l.type]||{};for(a[0]=l,i=1;i<arguments.length;i++)a[i]=arguments[i];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=y.event.handlers.call(this,l,u),i=0;(o=s[i++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(e=((y.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=e)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,i){var n,e,o,r,s,a=[],l=i.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(e=i[n]).selector+" "]&&(s[o]=e.needsContext?y(o,this).index(u)>-1:y.find(o,this,null,[u]).length),s[o]&&r.push(e);r.length&&a.push({elem:u,handlers:r})}return u=this,l<i.length&&a.push({elem:u,handlers:i.slice(l)}),a},addProp:function(t,i){Object.defineProperty(y.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(i)?function(){if(this.originalEvent)return i(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(i){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:i})}})},fix:function(t){return t[y.expando]?t:new y.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var i=this||t;return ht.test(i.type)&&i.click&&j(i,"input")&&Tt(i,"click",xt),!1},trigger:function(t){var i=this||t;return ht.test(i.type)&&i.click&&j(i,"input")&&Tt(i,"click"),!0},_default:function(t){var i=t.target;return ht.test(i.type)&&i.click&&j(i,"input")&&X.get(i,"click")||j(i,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},y.removeEvent=function(t,i,n){t.removeEventListener&&t.removeEventListener(i,n)},y.Event=function(t,i){if(!(this instanceof y.Event))return new y.Event(t,i);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?xt:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,i&&y.extend(this,i),this.timeStamp=t&&t.timeStamp||Date.now(),this[y.expando]=!0},y.Event.prototype={constructor:y.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=xt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=xt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=xt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},y.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},y.event.addProp),y.each({focus:"focusin",blur:"focusout"},(function(t,i){y.event.special[t]={setup:function(){return Tt(this,t,kt),!1},trigger:function(){return Tt(this,t),!0},_default:function(i){return X.get(i.target,t)},delegateType:i}})),y.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,i){y.event.special[t]={delegateType:i,bindType:i,handle:function(t){var n,e=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===e||y.contains(e,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=i),n}}})),y.fn.extend({on:function(t,i,n,e){return Ct(this,t,i,n,e)},one:function(t,i,n,e){return Ct(this,t,i,n,e,1)},off:function(t,i,n){var e,o;if(t&&t.preventDefault&&t.handleObj)return e=t.handleObj,y(t.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if("object"==typeof t){for(o in t)this.off(o,i,t[o]);return this}return!1!==i&&"function"!=typeof i||(n=i,i=void 0),!1===n&&(n=St),this.each((function(){y.event.remove(this,t,n,i)}))}});var jt=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Dt(t,i){return j(t,"table")&&j(11!==i.nodeType?i:i.firstChild,"tr")&&y(t).children("tbody")[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Lt(t,i){var n,e,o,r,s,a;if(1===i.nodeType){if(X.hasData(t)&&(a=X.get(t).events))for(o in X.remove(i,"handle events"),a)for(n=0,e=a[o].length;n<e;n++)y.event.add(i,o,a[o][n]);J.hasData(t)&&(r=J.access(t),s=y.extend({},r),J.set(i,s))}}function $t(t,i){var n=i.nodeName.toLowerCase();"input"===n&&ht.test(t.type)?i.checked=t.checked:"input"!==n&&"textarea"!==n||(i.defaultValue=t.defaultValue)}function _t(t,i,n,e){i=r(i);var o,s,a,l,u,c,d=0,h=t.length,v=h-1,m=i[0],b=p(m);if(b||h>1&&"string"==typeof m&&!f.checkClone&&Et.test(m))return t.each((function(o){var r=t.eq(o);b&&(i[0]=m.call(this,o,r.html())),_t(r,i,n,e)}));if(h&&(s=(o=wt(i,t[0].ownerDocument,!1,t,e)).firstChild,1===o.childNodes.length&&(o=s),s||e)){for(l=(a=y.map(mt(o,"script"),At)).length;d<h;d++)u=o,d!==v&&(u=y.clone(u,!0,!0),l&&y.merge(a,mt(u,"script"))),n.call(t[d],u,d);if(l)for(c=a[a.length-1].ownerDocument,y.map(a,Nt),d=0;d<l;d++)pt.test((u=a[d]).type||"")&&!X.access(u,"globalEval")&&y.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?y._evalUrl&&!u.noModule&&y._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):g(u.textContent.replace(Ot,""),u,c))}return t}function Rt(t,i,n){for(var e,o=i?y.filter(i,t):t,r=0;null!=(e=o[r]);r++)n||1!==e.nodeType||y.cleanData(mt(e)),e.parentNode&&(n&&et(e)&&bt(mt(e,"script")),e.parentNode.removeChild(e));return t}y.extend({htmlPrefilter:function(t){return t},clone:function(t,i,n){var e,o,r,s,a=t.cloneNode(!0),l=et(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||y.isXMLDoc(t)))for(s=mt(a),e=0,o=(r=mt(t)).length;e<o;e++)$t(r[e],s[e]);if(i)if(n)for(r=r||mt(t),s=s||mt(a),e=0,o=r.length;e<o;e++)Lt(r[e],s[e]);else Lt(t,a);return(s=mt(a,"script")).length>0&&bt(s,!l&&mt(t,"script")),a},cleanData:function(t){for(var i,n,e,o=y.event.special,r=0;void 0!==(n=t[r]);r++)if(K(n)){if(i=n[X.expando]){if(i.events)for(e in i.events)o[e]?y.event.remove(n,e):y.removeEvent(n,e,i.handle);n[X.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),y.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return z(this,(function(t){return void 0===t?y.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return _t(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)}))},prepend:function(){return _t(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var i=Dt(this,t);i.insertBefore(t,i.firstChild)}}))},before:function(){return _t(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return _t(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,i=0;null!=(t=this[i]);i++)1===t.nodeType&&(y.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,i){return t=null!=t&&t,i=null==i?t:i,this.map((function(){return y.clone(this,t,i)}))},html:function(t){return z(this,(function(t){var i=this[0]||{},n=0,e=this.length;if(void 0===t&&1===i.nodeType)return i.innerHTML;if("string"==typeof t&&!jt.test(t)&&!vt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=y.htmlPrefilter(t);try{for(;n<e;n++)1===(i=this[n]||{}).nodeType&&(y.cleanData(mt(i,!1)),i.innerHTML=t);i=0}catch(o){}}i&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return _t(this,arguments,(function(i){var n=this.parentNode;y.inArray(this,t)<0&&(y.cleanData(mt(this)),n&&n.replaceChild(i,this))}),t)}}),y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,i){y.fn[t]=function(t){for(var n,e=[],o=y(t),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),y(o[a])[i](n),s.apply(e,n.get());return this.pushStack(e)}}));var Mt=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),It=/^--/,Ft=function(i){var n=i.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(i)},Wt=function(t,i,n){var e,o,r={};for(o in i)r[o]=t.style[o],t.style[o]=i[o];for(o in e=n.call(t),i)t.style[o]=r[o];return e},Pt=new RegExp(it.join("|"),"i"),zt=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g");function qt(t,i,n){var e,o,r,s,a=It.test(i),l=t.style;return(n=n||Ft(t))&&(s=n.getPropertyValue(i)||n[i],a&&s&&(s=s.replace(zt,"$1")||void 0),""!==s||et(t)||(s=y.style(t,i)),!f.pixelBoxStyles()&&Mt.test(s)&&Pt.test(i)&&(e=l.width,o=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=e,l.minWidth=o,l.maxWidth=r)),void 0!==s?s+"":s}function Ht(t,i){return{get:function(){if(!t())return(this.get=i).apply(this,arguments);delete this.get}}}!function(){function i(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(u).appendChild(c);var i=t.getComputedStyle(c);e="1%"!==i.top,l=12===n(i.marginLeft),c.style.right="60%",s=36===n(i.right),o=36===n(i.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),nt.removeChild(u),c=null}}function n(t){return Math.round(parseFloat(t))}var e,o,r,s,a,l,u=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===c.style.backgroundClip,y.extend(f,{boxSizingReliable:function(){return i(),o},pixelBoxStyles:function(){return i(),s},pixelPosition:function(){return i(),e},reliableMarginLeft:function(){return i(),l},scrollboxSize:function(){return i(),r},reliableTrDimensions:function(){var i,n,e,o;return null==a&&(i=m.createElement("table"),n=m.createElement("tr"),e=m.createElement("div"),i.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",e.style.height="9px",e.style.display="block",nt.appendChild(i).appendChild(n).appendChild(e),o=t.getComputedStyle(n),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,nt.removeChild(i)),a}}))}();var Ut=["Webkit","Moz","ms"],Gt=m.createElement("div").style,Kt={};function Bt(t){return y.cssProps[t]||Kt[t]||(t in Gt?t:Kt[t]=function(t){for(var i=t[0].toUpperCase()+t.slice(1),n=Ut.length;n--;)if((t=Ut[n]+i)in Gt)return t}(t)||t)}var Xt=/^(none|table(?!-c[ea]).+)/,Jt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:"0",fontWeight:"400"};function Vt(t,i,n){var e=tt.exec(i);return e?Math.max(0,e[2]-(n||0))+(e[3]||"px"):i}function Qt(t,i,n,e,o,r){var s="width"===i?1:0,a=0,l=0;if(n===(e?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=y.css(t,n+it[s],!0,o)),e?("content"===n&&(l-=y.css(t,"padding"+it[s],!0,o)),"margin"!==n&&(l-=y.css(t,"border"+it[s]+"Width",!0,o))):(l+=y.css(t,"padding"+it[s],!0,o),"padding"!==n?l+=y.css(t,"border"+it[s]+"Width",!0,o):a+=y.css(t,"border"+it[s]+"Width",!0,o));return!e&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+i[0].toUpperCase()+i.slice(1)]-r-l-a-.5))||0),l}function Zt(t,i,n){var e=Ft(t),o=(!f.boxSizingReliable()||n)&&"border-box"===y.css(t,"boxSizing",!1,e),r=o,s=qt(t,i,e),a="offset"+i[0].toUpperCase()+i.slice(1);if(Mt.test(s)){if(!n)return s;s="auto"}return(!f.boxSizingReliable()&&o||!f.reliableTrDimensions()&&j(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===y.css(t,"display",!1,e))&&t.getClientRects().length&&(o="border-box"===y.css(t,"boxSizing",!1,e),(r=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+Qt(t,i,n||(o?"border":"content"),r,e,s)+"px"}function ti(t,i,n,e,o){return new ti.prototype.init(t,i,n,e,o)}y.extend({cssHooks:{opacity:{get:function(t,i){if(i){var n=qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,i,n,e){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=G(i),l=It.test(i),u=t.style;if(l||(i=Bt(a)),s=y.cssHooks[i]||y.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,e))?o:u[i];"string"==(r=typeof n)&&(o=tt.exec(n))&&o[1]&&(n=st(t,i,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(y.cssNumber[a]?"":"px")),f.clearCloneStyle||""!==n||0!==i.indexOf("background")||(u[i]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,e))||(l?u.setProperty(i,n):u[i]=n))}},css:function(t,i,n,e){var o,r,s,a=G(i);return It.test(i)||(i=Bt(a)),(s=y.cssHooks[i]||y.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=qt(t,i,e)),"normal"===o&&i in Yt&&(o=Yt[i]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),y.each(["height","width"],(function(t,i){y.cssHooks[i]={get:function(t,n,e){if(n)return!Xt.test(y.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Zt(t,i,e):Wt(t,Jt,(function(){return Zt(t,i,e)}))},set:function(t,n,e){var o,r=Ft(t),s=!f.scrollboxSize()&&"absolute"===r.position,a=(s||e)&&"border-box"===y.css(t,"boxSizing",!1,r),l=e?Qt(t,i,e,a,r):0;return a&&s&&(l-=Math.ceil(t["offset"+i[0].toUpperCase()+i.slice(1)]-parseFloat(r[i])-Qt(t,i,"border",!1,r)-.5)),l&&(o=tt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[i]=n,n=y.css(t,i)),Vt(0,n,l)}}})),y.cssHooks.marginLeft=Ht(f.reliableMarginLeft,(function(t,i){if(i)return(parseFloat(qt(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),y.each({margin:"",padding:"",border:"Width"},(function(t,i){y.cssHooks[t+i]={expand:function(n){for(var e=0,o={},r="string"==typeof n?n.split(" "):[n];e<4;e++)o[t+it[e]+i]=r[e]||r[e-2]||r[0];return o}},"margin"!==t&&(y.cssHooks[t+i].set=Vt)})),y.fn.extend({css:function(t,i){return z(this,(function(t,i,n){var e,o,r={},s=0;if(Array.isArray(i)){for(e=Ft(t),o=i.length;s<o;s++)r[i[s]]=y.css(t,i[s],!1,e);return r}return void 0!==n?y.style(t,i,n):y.css(t,i)}),t,i,arguments.length>1)}}),y.Tween=ti,(ti.prototype={constructor:ti,init:function(t,i,n,e,o,r){this.elem=t,this.prop=n,this.easing=o||y.easing._default,this.options=i,this.start=this.now=this.cur(),this.end=e,this.unit=r||(y.cssNumber[n]?"":"px")},cur:function(){var t=ti.propHooks[this.prop];return t&&t.get?t.get(this):ti.propHooks._default.get(this)},run:function(t){var i,n=ti.propHooks[this.prop];return this.pos=i=this.options.duration?y.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*i+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ti.propHooks._default.set(this),this}}).init.prototype=ti.prototype,(ti.propHooks={_default:{get:function(t){var i;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(i=y.css(t.elem,t.prop,""))&&"auto"!==i?i:0},set:function(t){y.fx.step[t.prop]?y.fx.step[t.prop](t):1!==t.elem.nodeType||!y.cssHooks[t.prop]&&null==t.elem.style[Bt(t.prop)]?t.elem[t.prop]=t.now:y.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=ti.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},y.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},y.fx=ti.prototype.init,y.fx.step={};var ii,ni,ei=/^(?:toggle|show|hide)$/,oi=/queueHooks$/;function ri(){ni&&(!1===m.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ri):t.setTimeout(ri,y.fx.interval),y.fx.tick())}function si(){return t.setTimeout((function(){ii=void 0})),ii=Date.now()}function ai(t,i){var n,e=0,o={height:t};for(i=i?1:0;e<4;e+=2-i)o["margin"+(n=it[e])]=o["padding"+n]=t;return i&&(o.opacity=o.width=t),o}function li(t,i,n){for(var e,o=(ui.tweeners[i]||[]).concat(ui.tweeners["*"]),r=0,s=o.length;r<s;r++)if(e=o[r].call(n,i,t))return e}function ui(t,i,n){var e,o,r=0,s=ui.prefilters.length,a=y.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var i=ii||si(),n=Math.max(0,u.startTime+u.duration-i),e=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(e);return a.notifyWith(t,[u,e,n]),e<1&&s?n:(s||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:y.extend({},i),opts:y.extend(!0,{specialEasing:{},easing:y.easing._default},n),originalProperties:i,originalOptions:n,startTime:ii||si(),duration:n.duration,tweens:[],createTween:function(i,n){var e=y.Tween(t,u.opts,i,n,u.opts.specialEasing[i]||u.opts.easing);return u.tweens.push(e),e},stop:function(i){var n=0,e=i?u.tweens.length:0;if(o)return this;for(o=!0;n<e;n++)u.tweens[n].run(1);return i?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,i])):a.rejectWith(t,[u,i]),this}}),c=u.props;for(function(t,i){var n,e,o,r,s;for(n in t)if(o=i[e=G(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==e&&(t[e]=r,delete t[n]),(s=y.cssHooks[e])&&"expand"in s)for(n in r=s.expand(r),delete t[e],r)n in t||(t[n]=r[n],i[n]=o);else i[e]=o}(c,u.opts.specialEasing);r<s;r++)if(e=ui.prefilters[r].call(u,t,c,u.opts))return p(e.stop)&&(y._queueHooks(u.elem,u.opts.queue).stop=e.stop.bind(e)),e;return y.map(c,li,u),p(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),y.fx.timer(y.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}y.Animation=y.extend(ui,{tweeners:{"*":[function(t,i){var n=this.createTween(t,i);return st(n.elem,t,tt.exec(i),n),n}]},tweener:function(t,i){p(t)?(i=t,t=["*"]):t=t.match(_);for(var n,e=0,o=t.length;e<o;e++)(ui.tweeners[n=t[e]]=ui.tweeners[n]||[]).unshift(i)},prefilters:[function(t,i,n){var e,o,r,s,a,l,u,c,d="width"in i||"height"in i,h=this,f={},p=t.style,v=t.nodeType&&rt(t),m=X.get(t,"fxshow");for(e in n.queue||(null==(s=y._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,y.queue(t,"fx").length||s.empty.fire()}))}))),i)if(ei.test(o=i[e])){if(delete i[e],r=r||"toggle"===o,o===(v?"hide":"show")){if("show"!==o||!m||void 0===m[e])continue;v=!0}f[e]=m&&m[e]||y.style(t,e)}if((l=!y.isEmptyObject(i))||!y.isEmptyObject(f))for(e in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=X.get(t,"display")),"none"===(c=y.css(t,"display"))&&(u?c=u:(ut([t],!0),u=t.style.display||u,c=y.css(t,"display"),ut([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===y.css(t,"float")&&(l||(h.done((function(){p.display=u})),null==u&&(u="none"===(c=p.display)?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(v=m.hidden):m=X.access(t,"fxshow",{display:u}),r&&(m.hidden=!v),v&&ut([t],!0),h.done((function(){for(e in v||ut([t]),X.remove(t,"fxshow"),f)y.style(t,e,f[e])}))),l=li(v?m[e]:0,e,h),e in m||(m[e]=l.start,v&&(l.end=l.start,l.start=0))}],prefilter:function(t,i){i?ui.prefilters.unshift(t):ui.prefilters.push(t)}}),y.speed=function(t,i,n){var e=t&&"object"==typeof t?y.extend({},t):{complete:n||!n&&i||p(t)&&t,duration:t,easing:n&&i||i&&!p(i)&&i};return y.fx.off?e.duration=0:"number"!=typeof e.duration&&(e.duration=e.duration in y.fx.speeds?y.fx.speeds[e.duration]:y.fx.speeds._default),null!=e.queue&&!0!==e.queue||(e.queue="fx"),e.old=e.complete,e.complete=function(){p(e.old)&&e.old.call(this),e.queue&&y.dequeue(this,e.queue)},e},y.fn.extend({fadeTo:function(t,i,n,e){return this.filter(rt).css("opacity",0).show().end().animate({opacity:i},t,n,e)},animate:function(t,i,n,e){var o=y.isEmptyObject(t),r=y.speed(i,n,e),s=function(){var i=ui(this,y.extend({},t),r);(o||X.get(this,"finish"))&&i.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(t,i,n){var e=function(t){var i=t.stop;delete t.stop,i(n)};return"string"!=typeof t&&(n=i,i=t,t=void 0),i&&this.queue(t||"fx",[]),this.each((function(){var i=!0,o=null!=t&&t+"queueHooks",r=y.timers,s=X.get(this);if(o)s[o]&&s[o].stop&&e(s[o]);else for(o in s)s[o]&&s[o].stop&&oi.test(o)&&e(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),i=!1,r.splice(o,1));!i&&n||y.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var i,n=X.get(this),e=n[t+"queue"],o=n[t+"queueHooks"],r=y.timers,s=e?e.length:0;for(n.finish=!0,y.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),i=r.length;i--;)r[i].elem===this&&r[i].queue===t&&(r[i].anim.stop(!0),r.splice(i,1));for(i=0;i<s;i++)e[i]&&e[i].finish&&e[i].finish.call(this);delete n.finish}))}}),y.each(["toggle","show","hide"],(function(t,i){var n=y.fn[i];y.fn[i]=function(t,e,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ai(i,!0),t,e,o)}})),y.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,i){y.fn[t]=function(t,n,e){return this.animate(i,t,n,e)}})),y.timers=[],y.fx.tick=function(){var t,i=0,n=y.timers;for(ii=Date.now();i<n.length;i++)(t=n[i])()||n[i]!==t||n.splice(i--,1);n.length||y.fx.stop(),ii=void 0},y.fx.timer=function(t){y.timers.push(t),y.fx.start()},y.fx.interval=13,y.fx.start=function(){ni||(ni=!0,ri())},y.fx.stop=function(){ni=null},y.fx.speeds={slow:600,fast:200,_default:400},y.fn.delay=function(i,n){return i=y.fx&&y.fx.speeds[i]||i,this.queue(n=n||"fx",(function(n,e){var o=t.setTimeout(n,i);e.stop=function(){t.clearTimeout(o)}}))},function(){var t=m.createElement("input"),i=m.createElement("select").appendChild(m.createElement("option"));t.type="checkbox",f.checkOn=""!==t.value,f.optSelected=i.selected,(t=m.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var ci,di=y.expr.attrHandle;y.fn.extend({attr:function(t,i){return z(this,y.attr,t,i,arguments.length>1)},removeAttr:function(t){return this.each((function(){y.removeAttr(this,t)}))}}),y.extend({attr:function(t,i,n){var e,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?y.prop(t,i,n):(1===r&&y.isXMLDoc(t)||(o=y.attrHooks[i.toLowerCase()]||(y.expr.match.bool.test(i)?ci:void 0)),void 0!==n?null===n?void y.removeAttr(t,i):o&&"set"in o&&void 0!==(e=o.set(t,n,i))?e:(t.setAttribute(i,n+""),n):o&&"get"in o&&null!==(e=o.get(t,i))?e:null==(e=y.find.attr(t,i))?void 0:e)},attrHooks:{type:{set:function(t,i){if(!f.radioValue&&"radio"===i&&j(t,"input")){var n=t.value;return t.setAttribute("type",i),n&&(t.value=n),i}}}},removeAttr:function(t,i){var n,e=0,o=i&&i.match(_);if(o&&1===t.nodeType)for(;n=o[e++];)t.removeAttribute(n)}}),ci={set:function(t,i,n){return!1===i?y.removeAttr(t,n):t.setAttribute(n,n),n}},y.each(y.expr.match.bool.source.match(/\w+/g),(function(t,i){var n=di[i]||y.find.attr;di[i]=function(t,i,e){var o,r,s=i.toLowerCase();return e||(r=di[s],di[s]=o,o=null!=n(t,i,e)?s:null,di[s]=r),o}}));var hi=/^(?:input|select|textarea|button)$/i,fi=/^(?:a|area)$/i;function pi(t){return(t.match(_)||[]).join(" ")}function vi(t){return t.getAttribute&&t.getAttribute("class")||""}function mi(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(_)||[]}y.fn.extend({prop:function(t,i){return z(this,y.prop,t,i,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[y.propFix[t]||t]}))}}),y.extend({prop:function(t,i,n){var e,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&y.isXMLDoc(t)||(o=y.propHooks[i=y.propFix[i]||i]),void 0!==n?o&&"set"in o&&void 0!==(e=o.set(t,n,i))?e:t[i]=n:o&&"get"in o&&null!==(e=o.get(t,i))?e:t[i]},propHooks:{tabIndex:{get:function(t){var i=y.find.attr(t,"tabindex");return i?parseInt(i,10):hi.test(t.nodeName)||fi.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(y.propHooks.selected={get:function(){return null},set:function(){}}),y.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){y.propFix[this.toLowerCase()]=this})),y.fn.extend({addClass:function(t){var i,n,e,o,r,s;return p(t)?this.each((function(i){y(this).addClass(t.call(this,i,vi(this)))})):(i=mi(t)).length?this.each((function(){if(e=vi(this),n=1===this.nodeType&&" "+pi(e)+" "){for(r=0;r<i.length;r++)n.indexOf(" "+(o=i[r])+" ")<0&&(n+=o+" ");s=pi(n),e!==s&&this.setAttribute("class",s)}})):this},removeClass:function(t){var i,n,e,o,r,s;return p(t)?this.each((function(i){y(this).removeClass(t.call(this,i,vi(this)))})):arguments.length?(i=mi(t)).length?this.each((function(){if(e=vi(this),n=1===this.nodeType&&" "+pi(e)+" "){for(r=0;r<i.length;r++)for(o=i[r];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s=pi(n),e!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,i){var n,e,o,r,s=typeof t,a="string"===s||Array.isArray(t);return p(t)?this.each((function(n){y(this).toggleClass(t.call(this,n,vi(this),i),i)})):"boolean"==typeof i&&a?i?this.addClass(t):this.removeClass(t):(n=mi(t),this.each((function(){if(a)for(r=y(this),o=0;o<n.length;o++)r.hasClass(e=n[o])?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==s||((e=vi(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":X.get(this,"__className__")||""))})))},hasClass:function(t){var i,n,e=0;for(i=" "+t+" ";n=this[e++];)if(1===n.nodeType&&(" "+pi(vi(n))+" ").indexOf(i)>-1)return!0;return!1}});var bi=/\r/g;y.fn.extend({val:function(t){var i,n,e,o=this[0];return arguments.length?(e=p(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=e?t.call(this,n,y(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=y.map(o,(function(t){return null==t?"":t+""}))),(i=y.valHooks[this.type]||y.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,o,"value")||(this.value=o))}))):o?(i=y.valHooks[o.type]||y.valHooks[o.nodeName.toLowerCase()])&&"get"in i&&void 0!==(n=i.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(bi,""):null==n?"":n:void 0}}),y.extend({valHooks:{option:{get:function(t){var i=y.find.attr(t,"value");return null!=i?i:pi(y.text(t))}},select:{get:function(t){var i,n,e,o=t.options,r=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?r+1:o.length;for(e=r<0?l:s?r:0;e<l;e++)if(((n=o[e]).selected||e===r)&&!n.disabled&&(!n.parentNode.disabled||!j(n.parentNode,"optgroup"))){if(i=y(n).val(),s)return i;a.push(i)}return a},set:function(t,i){for(var n,e,o=t.options,r=y.makeArray(i),s=o.length;s--;)((e=o[s]).selected=y.inArray(y.valHooks.option.get(e),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),y.each(["radio","checkbox"],(function(){y.valHooks[this]={set:function(t,i){if(Array.isArray(i))return t.checked=y.inArray(y(t).val(),i)>-1}},f.checkOn||(y.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var gi=/^(?:focusinfocus|focusoutblur)$/,wi=function(t){t.stopPropagation()};y.extend(y.event,{trigger:function(i,n,e,o){var r,s,a,l,u,d,h,f,b=[e||m],g=c.call(i,"type")?i.type:i,w=c.call(i,"namespace")?i.namespace.split("."):[];if(s=f=a=e=e||m,3!==e.nodeType&&8!==e.nodeType&&!gi.test(g+y.event.triggered)&&(g.indexOf(".")>-1&&(w=g.split("."),g=w.shift(),w.sort()),u=g.indexOf(":")<0&&"on"+g,(i=i[y.expando]?i:new y.Event(g,"object"==typeof i&&i)).isTrigger=o?2:3,i.namespace=w.join("."),i.rnamespace=i.namespace?new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,i.result=void 0,i.target||(i.target=e),n=null==n?[i]:y.makeArray(n,[i]),h=y.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(e,n))){if(!o&&!h.noBubble&&!v(e)){for(gi.test((l=h.delegateType||g)+g)||(s=s.parentNode);s;s=s.parentNode)b.push(s),a=s;a===(e.ownerDocument||m)&&b.push(a.defaultView||a.parentWindow||t)}for(r=0;(s=b[r++])&&!i.isPropagationStopped();)f=s,i.type=r>1?l:h.bindType||g,(d=(X.get(s,"events")||Object.create(null))[i.type]&&X.get(s,"handle"))&&d.apply(s,n),(d=u&&s[u])&&d.apply&&K(s)&&(i.result=d.apply(s,n),!1===i.result&&i.preventDefault());return i.type=g,o||i.isDefaultPrevented()||h._default&&!1!==h._default.apply(b.pop(),n)||!K(e)||u&&p(e[g])&&!v(e)&&((a=e[u])&&(e[u]=null),y.event.triggered=g,i.isPropagationStopped()&&f.addEventListener(g,wi),e[g](),i.isPropagationStopped()&&f.removeEventListener(g,wi),y.event.triggered=void 0,a&&(e[u]=a)),i.result}},simulate:function(t,i,n){var e=y.extend(new y.Event,n,{type:t,isSimulated:!0});y.event.trigger(e,null,i)}}),y.fn.extend({trigger:function(t,i){return this.each((function(){y.event.trigger(t,i,this)}))},triggerHandler:function(t,i){var n=this[0];if(n)return y.event.trigger(t,i,n,!0)}}),f.focusin||y.each({focus:"focusin",blur:"focusout"},(function(t,i){var n=function(t){y.event.simulate(i,t.target,y.event.fix(t))};y.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,o=X.access(e,i);o||e.addEventListener(t,n,!0),X.access(e,i,(o||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,o=X.access(e,i)-1;o?X.access(e,i,o):(e.removeEventListener(t,n,!0),X.remove(e,i))}}}));var yi=t.location,xi={guid:Date.now()},Si=/\?/;y.parseXML=function(i){var n,e;if(!i||"string"!=typeof i)return null;try{n=(new t.DOMParser).parseFromString(i,"text/xml")}catch(o){}return e=n&&n.getElementsByTagName("parsererror")[0],n&&!e||y.error("Invalid XML: "+(e?y.map(e.childNodes,(function(t){return t.textContent})).join("\n"):i)),n};var ki=/\[\]$/,Ci=/\r?\n/g,Ti=/^(?:submit|button|image|reset|file)$/i,ji=/^(?:input|select|textarea|keygen)/i;function Ei(t,i,n,e){var o;if(Array.isArray(i))y.each(i,(function(i,o){n||ki.test(t)?e(t,o):Ei(t+"["+("object"==typeof o&&null!=o?i:"")+"]",o,n,e)}));else if(n||"object"!==w(i))e(t,i);else for(o in i)Ei(t+"["+o+"]",i[o],n,e)}y.param=function(t,i){var n,e=[],o=function(t,i){var n=p(i)?i():i;e[e.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!y.isPlainObject(t))y.each(t,(function(){o(this.name,this.value)}));else for(n in t)Ei(n,t[n],i,o);return e.join("&")},y.fn.extend({serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=y.prop(this,"elements");return t?y.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!y(this).is(":disabled")&&ji.test(this.nodeName)&&!Ti.test(t)&&(this.checked||!ht.test(t))})).map((function(t,i){var n=y(this).val();return null==n?null:Array.isArray(n)?y.map(n,(function(t){return{name:i.name,value:t.replace(Ci,"\r\n")}})):{name:i.name,value:n.replace(Ci,"\r\n")}})).get()}});var Oi=/%20/g,Di=/#.*$/,Ai=/([?&])_=[^&]*/,Ni=/^(.*?):[ \t]*([^\r\n]*)$/gm,Li=/^(?:GET|HEAD)$/,$i=/^\/\//,_i={},Ri={},Mi="*/".concat("*"),Ii=m.createElement("a");function Fi(t){return function(i,n){"string"!=typeof i&&(n=i,i="*");var e,o=0,r=i.toLowerCase().match(_)||[];if(p(n))for(;e=r[o++];)"+"===e[0]?(e=e.slice(1)||"*",(t[e]=t[e]||[]).unshift(n)):(t[e]=t[e]||[]).push(n)}}function Wi(t,i,n,e){var o={},r=t===Ri;function s(a){var l;return o[a]=!0,y.each(t[a]||[],(function(t,a){var u=a(i,n,e);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(i.dataTypes.unshift(u),s(u),!1)})),l}return s(i.dataTypes[0])||!o["*"]&&s("*")}function Pi(t,i){var n,e,o=y.ajaxSettings.flatOptions||{};for(n in i)void 0!==i[n]&&((o[n]?t:e||(e={}))[n]=i[n]);return e&&y.extend(!0,t,e),t}Ii.href=yi.href,y.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yi.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mi,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":y.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,i){return i?Pi(Pi(t,y.ajaxSettings),i):Pi(y.ajaxSettings,t)},ajaxPrefilter:Fi(_i),ajaxTransport:Fi(Ri),ajax:function(i,n){"object"==typeof i&&(n=i,i=void 0);var e,o,r,s,a,l,u,c,d,h,f=y.ajaxSetup({},n=n||{}),p=f.context||f,v=f.context&&(p.nodeType||p.jquery)?y(p):y.event,b=y.Deferred(),g=y.Callbacks("once memory"),w=f.statusCode||{},x={},S={},k="canceled",C={readyState:0,getResponseHeader:function(t){var i;if(u){if(!s)for(s={};i=Ni.exec(r);)s[i[1].toLowerCase()+" "]=(s[i[1].toLowerCase()+" "]||[]).concat(i[2]);i=s[t.toLowerCase()+" "]}return null==i?null:i.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(t,i){return null==u&&(t=S[t.toLowerCase()]=S[t.toLowerCase()]||t,x[t]=i),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var i;if(t)if(u)C.always(t[C.status]);else for(i in t)w[i]=[w[i],t[i]];return this},abort:function(t){var i=t||k;return e&&e.abort(i),T(0,i),this}};if(b.promise(C),f.url=((i||f.url||yi.href)+"").replace($i,yi.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(_)||[""],null==f.crossDomain){l=m.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ii.protocol+"//"+Ii.host!=l.protocol+"//"+l.host}catch(j){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=y.param(f.data,f.traditional)),Wi(_i,f,n,C),u)return C;for(d in(c=y.event&&f.global)&&0==y.active++&&y.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Li.test(f.type),o=f.url.replace(Di,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Oi,"+")):(h=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Si.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Ai,"$1"),h=(Si.test(o)?"&":"?")+"_="+xi.guid+++h),f.url=o+h),f.ifModified&&(y.lastModified[o]&&C.setRequestHeader("If-Modified-Since",y.lastModified[o]),y.etag[o]&&C.setRequestHeader("If-None-Match",y.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Mi+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||u))return C.abort();if(k="abort",g.add(f.complete),C.done(f.success),C.fail(f.error),e=Wi(Ri,f,n,C)){if(C.readyState=1,c&&v.trigger("ajaxSend",[C,f]),u)return C;f.async&&f.timeout>0&&(a=t.setTimeout((function(){C.abort("timeout")}),f.timeout));try{u=!1,e.send(x,T)}catch(j){if(u)throw j;T(-1,j)}}else T(-1,"No Transport");function T(i,n,s,l){var d,h,m,x,S,k=n;u||(u=!0,a&&t.clearTimeout(a),e=void 0,r=l||"",C.readyState=i>0?4:0,d=i>=200&&i<300||304===i,s&&(x=function(t,i,n){for(var e,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===e&&(e=t.mimeType||i.getResponseHeader("Content-Type"));if(e)for(o in a)if(a[o]&&a[o].test(e)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,C,s)),!d&&y.inArray("script",f.dataTypes)>-1&&y.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,i,n,e){var o,r,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=i),!l&&e&&t.dataFilter&&(i=t.dataFilter(i,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)i=s(i);else try{i=s(i)}catch(j){return{state:"parsererror",error:s?j:"No conversion from "+l+" to "+r}}}return{state:"success",data:i}}(f,x,C,d),d?(f.ifModified&&((S=C.getResponseHeader("Last-Modified"))&&(y.lastModified[o]=S),(S=C.getResponseHeader("etag"))&&(y.etag[o]=S)),204===i||"HEAD"===f.type?k="nocontent":304===i?k="notmodified":(k=x.state,h=x.data,d=!(m=x.error))):(m=k,!i&&k||(k="error",i<0&&(i=0))),C.status=i,C.statusText=(n||k)+"",d?b.resolveWith(p,[h,k,C]):b.rejectWith(p,[C,k,m]),C.statusCode(w),w=void 0,c&&v.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?h:m]),g.fireWith(p,[C,k]),c&&(v.trigger("ajaxComplete",[C,f]),--y.active||y.event.trigger("ajaxStop")))}return C},getJSON:function(t,i,n){return y.get(t,i,n,"json")},getScript:function(t,i){return y.get(t,void 0,i,"script")}}),y.each(["get","post"],(function(t,i){y[i]=function(t,n,e,o){return p(n)&&(o=o||e,e=n,n=void 0),y.ajax(y.extend({url:t,type:i,dataType:o,data:n,success:e},y.isPlainObject(t)&&t))}})),y.ajaxPrefilter((function(t){var i;for(i in t.headers)"content-type"===i.toLowerCase()&&(t.contentType=t.headers[i]||"")})),y._evalUrl=function(t,i,n){return y.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){y.globalEval(t,i,n)}})},y.fn.extend({wrapAll:function(t){var i;return this[0]&&(p(t)&&(t=t.call(this[0])),i=y(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&i.insertBefore(this[0]),i.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return p(t)?this.each((function(i){y(this).wrapInner(t.call(this,i))})):this.each((function(){var i=y(this),n=i.contents();n.length?n.wrapAll(t):i.append(t)}))},wrap:function(t){var i=p(t);return this.each((function(n){y(this).wrapAll(i?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){y(this).replaceWith(this.childNodes)})),this}}),y.expr.pseudos.hidden=function(t){return!y.expr.pseudos.visible(t)},y.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},y.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(i){}};var zi={0:200,1223:204},qi=y.ajaxSettings.xhr();f.cors=!!qi&&"withCredentials"in qi,f.ajax=qi=!!qi,y.ajaxTransport((function(i){var n,e;if(f.cors||qi&&!i.crossDomain)return{send:function(o,r){var s,a=i.xhr();if(a.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(s in i.xhrFields)a[s]=i.xhrFields[s];for(s in i.mimeType&&a.overrideMimeType&&a.overrideMimeType(i.mimeType),i.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);n=function(t){return function(){n&&(n=e=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(zi[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),e=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=e:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout((function(){n&&e()}))},n=n("abort");try{a.send(i.hasContent&&i.data||null)}catch(l){if(n)throw l}},abort:function(){n&&n()}}})),y.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),y.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return y.globalEval(t),t}}}),y.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),y.ajaxTransport("script",(function(t){var i,n;if(t.crossDomain||t.scriptAttrs)return{send:function(e,o){i=y("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){i.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),m.head.appendChild(i[0])},abort:function(){n&&n()}}}));var Hi,Ui=[],Gi=/(=)\?(?=&|$)|\?\?/;y.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ui.pop()||y.expando+"_"+xi.guid++;return this[t]=!0,t}}),y.ajaxPrefilter("json jsonp",(function(i,n,e){var o,r,s,a=!1!==i.jsonp&&(Gi.test(i.url)?"url":"string"==typeof i.data&&0===(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gi.test(i.data)&&"data");if(a||"jsonp"===i.dataTypes[0])return o=i.jsonpCallback=p(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,a?i[a]=i[a].replace(Gi,"$1"+o):!1!==i.jsonp&&(i.url+=(Si.test(i.url)?"&":"?")+i.jsonp+"="+o),i.converters["script json"]=function(){return s||y.error(o+" was not called"),s[0]},i.dataTypes[0]="json",r=t[o],t[o]=function(){s=arguments},e.always((function(){void 0===r?y(t).removeProp(o):t[o]=r,i[o]&&(i.jsonpCallback=n.jsonpCallback,Ui.push(o)),s&&p(r)&&r(s[0]),s=r=void 0})),"script"})),f.createHTMLDocument=((Hi=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Hi.childNodes.length),y.parseHTML=function(t,i,n){return"string"!=typeof t?[]:("boolean"==typeof i&&(n=i,i=!1),i||(f.createHTMLDocument?((e=(i=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,i.head.appendChild(e)):i=m),r=!n&&[],(o=E.exec(t))?[i.createElement(o[1])]:(o=wt([t],i,r),r&&r.length&&y(r).remove(),y.merge([],o.childNodes)));var e,o,r},y.fn.load=function(t,i,n){var e,o,r,s=this,a=t.indexOf(" ");return a>-1&&(e=pi(t.slice(a)),t=t.slice(0,a)),p(i)?(n=i,i=void 0):i&&"object"==typeof i&&(o="POST"),s.length>0&&y.ajax({url:t,type:o||"GET",dataType:"html",data:i}).done((function(t){r=arguments,s.html(e?y("<div>").append(y.parseHTML(t)).find(e):t)})).always(n&&function(t,i){s.each((function(){n.apply(this,r||[t.responseText,i,t])}))}),this},y.expr.pseudos.animated=function(t){return y.grep(y.timers,(function(i){return t===i.elem})).length},y.offset={setOffset:function(t,i,n){var e,o,r,s,a,l,u=y.css(t,"position"),c=y(t),d={};"static"===u&&(t.style.position="relative"),a=c.offset(),r=y.css(t,"top"),l=y.css(t,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(e=c.position()).top,o=e.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),p(i)&&(i=i.call(t,n,y.extend({},a))),null!=i.top&&(d.top=i.top-a.top+s),null!=i.left&&(d.left=i.left-a.left+o),"using"in i?i.using.call(t,d):c.css(d)}},y.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(i){y.offset.setOffset(this,t,i)}));var i,n,e=this[0];return e?e.getClientRects().length?{top:(i=e.getBoundingClientRect()).top+(n=e.ownerDocument.defaultView).pageYOffset,left:i.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,i,n,e=this[0],o={top:0,left:0};if("fixed"===y.css(e,"position"))i=e.getBoundingClientRect();else{for(i=this.offset(),n=e.ownerDocument,t=e.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===y.css(t,"position");)t=t.parentNode;t&&t!==e&&1===t.nodeType&&((o=y(t).offset()).top+=y.css(t,"borderTopWidth",!0),o.left+=y.css(t,"borderLeftWidth",!0))}return{top:i.top-o.top-y.css(e,"marginTop",!0),left:i.left-o.left-y.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===y.css(t,"position");)t=t.offsetParent;return t||nt}))}}),y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,i){var n="pageYOffset"===i;y.fn[t]=function(e){return z(this,(function(t,e,o){var r;if(v(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[i]:t[e];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[e]=o}),t,e,arguments.length)}})),y.each(["top","left"],(function(t,i){y.cssHooks[i]=Ht(f.pixelPosition,(function(t,n){if(n)return n=qt(t,i),Mt.test(n)?y(t).position()[i]+"px":n}))})),y.each({Height:"height",Width:"width"},(function(t,i){y.each({padding:"inner"+t,content:i,"":"outer"+t},(function(n,e){y.fn[e]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return z(this,(function(i,n,o){var r;return v(i)?0===e.indexOf("outer")?i["inner"+t]:i.document.documentElement["client"+t]:9===i.nodeType?(r=i.documentElement,Math.max(i.body["scroll"+t],r["scroll"+t],i.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?y.css(i,n,a):y.style(i,n,o,a)}),i,s?o:void 0,s)}}))})),y.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,i){y.fn[i]=function(t){return this.on(i,t)}})),y.fn.extend({bind:function(t,i,n){return this.on(t,null,i,n)},unbind:function(t,i){return this.off(t,null,i)},delegate:function(t,i,n,e){return this.on(i,t,n,e)},undelegate:function(t,i,n){return 1===arguments.length?this.off(t,"**"):this.off(i,t||"**",n)},hover:function(t,i){return this.mouseenter(t).mouseleave(i||t)}}),y.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,i){y.fn[i]=function(t,n){return arguments.length>0?this.on(i,null,t,n):this.trigger(i)}}));var Ki=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;y.proxy=function(t,i){var n,e,r;if("string"==typeof i&&(n=t[i],i=t,t=n),p(t))return e=o.call(arguments,2),(r=function(){return t.apply(i||this,e.concat(o.call(arguments)))}).guid=t.guid=t.guid||y.guid++,r},y.holdReady=function(t){t?y.readyWait++:y.ready(!0)},y.isArray=Array.isArray,y.parseJSON=JSON.parse,y.nodeName=j,y.isFunction=p,y.isWindow=v,y.camelCase=G,y.type=w,y.now=Date.now,y.isNumeric=function(t){var i=y.type(t);return("number"===i||"string"===i)&&!isNaN(t-parseFloat(t))},y.trim=function(t){return null==t?"":(t+"").replace(Ki,"$1")};var Bi=t.jQuery,Xi=t.$;return y.noConflict=function(i){return t.$===y&&(t.$=Xi),i&&t.jQuery===y&&(t.jQuery=Bi),y},void 0===i&&(t.jQuery=t.$=y),y}))}(u={exports:{}}),u.exports);const h=class{constructor(i){t(this,i),this.logoutGracePeriodMs=2e3,this.isSidebarOpen=!1,this.messages=[],this.isFooter=!0,this.isLogin=!1,this.updatedMessages=[],this.newMessageCount=0,this.loggedIn=!1,this.counterMessages=0,this.showLongSessionModal=!1,this.longSessionReminderCount=0,this.longSessionTimer=null,this.longSessionFollowUpTimer=null,this.longSessionModalInactivityTimer=null,this.LONG_SESSION_TIMEOUT_MS=63e5,this.LONG_SESSION_SNOOZE_MS=3e5,this.LONG_SESSION_MAX_REMINDERS=3,this.LONG_SESSION_PROTECTED_HOSTNAMES=["ctswebt.taxes.gov.il","shaam.taxes.gov.il"],this.modalstyle={display:"inline !important;"},this.menuStyle={display:"none"},this.logoutInternetfunc=e(this,"logoutInternetfunc",7),this.logoutEvent=e(this,"logoutEvent",7),this.toggleSidebar=e(this,"toggleSidebar",7)}async componentWillLoad(){const t=this.getDomain();this.privateAreaLink=t+"/Srsherutatzmi/startpage.aspx",this.loadUserDetailsFromStorage(),"INTERNET"!=this.appEnvironment||this.isLogin?this.loggedIn||this.getUserDetailsFromSessionStorage():this.getUserDetailsFromCookies(),this.updatedMessages=this.messages.map(t=>void 0===t.read?Object.assign(Object.assign({},t),{read:!1}):t)}componentDidLoad(){this.firstup=!0,this.host=location.protocol+"//"+window.location.hostname.toLowerCase(),this.getHost(),this.setBtn(),window.location.href.includes("sr-ezor-ishi")&&(window.innerWidth<=992||this.handleToggleClick()),window.addEventListener("popstate",this.handlePopState),this.restoreLongSessionTimer()}componentDidUnload(){window.removeEventListener("popstate",this.handlePopState),this.clearLongSessionTimers()}componentWillRender(){this.counterMessages=this.messages.length}componentDidRender(){this.comprender=!0,"INTRANET"===this.appEnvironment&&this.clickOutSideAreaUser()}async componentDidUpdate(){if(this.wideboolonload&&this.firstup&&this.comprender&&this.version<15){for(this.firstup=!1;!document.querySelector(".page-content");)await this.delay(100);this.clickWideNarrowonload()}}componentWillUpdate(){this.newMessageCount=this.calculateNewMessageCount()}render(){const t=this.updatedMessages.slice(0,5);return"INTERNET"==this.appEnvironment?this.isLogin?i("header",null,i("div",null,i("link",{id:"Negishut",rel:"stylesheet"}),i("details",{ref:t=>this.detailsRef=t},i("summary",{class:"access_button"},"נגישות"),i("div",{role:"list",class:"access_menu"},i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.BlackWhiteMode()},"שחור לבן")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.NightMode(),"aria-label":"ניגודיות כהה"},"נגודיות כהה")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.RegularMode()},"תצוגה רגילה")))),i("div",{class:"header-wrapper"},i("div",{class:"header-design"},i("div",{class:"d-flex align-items-center header_styles"},i("div",{class:"logo-name"},i("div",{class:"btn-menu"},i("a",{href:"javascript:void(0);",class:"daleg",onClick:()=>this.findTitle()},"דלג לתוכן ראשי"," "),i("a",{class:"logo-desktop",href:"http://www.taxes.gov.il/",title:"רשות המיסים"},i("img",{"aria-hidden":"true",src:this.logoTaxesAuthority,alt:""}),i("span",null,"רשות המסים בישראל")))),i("a",{class:"logo-mobile",href:"http://www.taxes.gov.il/",title:"רשות המיסים"},i("img",{"aria-hidden":"true",src:this.logoTaxesAuthority,alt:""})))))),i("long-session-modal",{isOpen:this.showLongSessionModal,reminderCount:this.longSessionReminderCount,maxReminders:this.LONG_SESSION_MAX_REMINDERS,host:this.getDomain(),onLongSessionRemind:()=>this.handleLongSessionRemind(),onLongSessionOtpSuccess:()=>this.handleLongSessionOtpSuccess(),onLongSessionOtpCancelled:()=>this.triggerLogout()})):this.version>=15?i("header",null,i("div",null,i("link",{id:"Negishut",rel:"stylesheet"}),i("details",{ref:t=>this.detailsRef=t},i("summary",{class:"access_button"},"נגישות"),i("div",{role:"list",class:"access_menu"},i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.BlackWhiteMode()},"שחור לבן")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.NightMode(),"aria-label":"ניגודיות כהה"},"נגודיות כהה")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.RegularMode()},"תצוגה רגילה")))),i("div",{class:"header-wrapper"},i("div",{class:"header-design"},i("div",{class:"d-flex align-items-center header_styles"},i("div",{class:"modal fade",id:"dialogIshurNS",role:"dialog",tabindex:"-1","aria-modal":"true","aria-labelledby":"logoutmodal1","aria-hidden":"true"},i("div",{class:"modal-dialog log-out-modal",role:"document"},i("div",{class:"modal-content",role:"alert"},i("div",{class:"modal-header"},i("h2",{class:"modal-title",id:"logoutmodal1"},"התראה לפני התנתקות")),i("div",{class:"modal-body",id:"messageIshur3"},i("p",null,"בחרת להתנתק ממערכות רשות המסים,",i("br",null),"אם הינך מזוהה באמצעות כרטיס חכם, ניתוק מלא יתבצע לאחר הוצאת הכרטיס מקורא הכרטיס וסגירת הדפדפן.",i("br",null),"אם הינך מזוהה באמצעות מערכת זיהוי לקוח (קוד משתמש), לחיצה על אישור תנתק אותך מהמערכת.")),i("div",{class:"modal-footer"},i("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal","aria-label":"סיום גלישה באתר"},"ביטול"),i("button",{type:"button",class:"btn btn-primary","aria-label":"המשך גלישה באתר",onClick:()=>this.InternetLogOut(!1)},"אישור"))))),i("div",{class:"logo-name"},i("a",{href:"javascript:void(0);",class:"daleg",onClick:()=>this.findTitle()},"דלג לתוכן ראשי"," "),i("button",{onClick:()=>this.handleToggleClick(),class:"btn-menu","aria-haspopup":"menu","aria-expanded":this.isSidebarOpen?"true":"false","aria-label":this.isSidebarOpen?"שינוי תצוגת תפריט למצב מצומצם, אייקונים ללא טקסט":"שינוי תצוגת תפריט למצב מורחב, אייקונים עם טקסט"}),i("div",{class:"btn-menu"},i("a",{class:"logo-desktop",href:"http://www.taxes.gov.il/",title:"רשות המיסים"},i("img",{"aria-hidden":"true",src:this.logoTaxesAuthority,alt:""}),i("span",null,"רשות המסים בישראל"))),i("span",{class:"app-name"},this.project)),i("a",{class:"logo-mobile",href:"http://www.taxes.gov.il/",title:"רשות המיסים"},i("img",{"aria-hidden":"true",src:this.logoTaxesAuthority,alt:""}))),this.checkGetFullNameCookie()&&i("div",{class:"d-flex align-items-center"},i("div",{class:"dropdown bttn",id:"userDiv"},i("a",{class:"btn title",href:"#userArea",role:"button","data-bs-toggle":"collapse","data-toggle":"collapse","aria-expanded":"false","aria-controls":"userArea"},i("i",{class:"bi-person-circle","aria-hidden":"true"}),i("span",null,this.fullName)),i("nav",{"aria-label":"תפריט משתמש"},i("div",{class:"collapse",id:"userArea"},i("ul",{class:"dropdown-menu show area-prsonal"},i("li",{class:"dropdown-item"},i("a",{href:"javascript:void(0)",class:"change-edit d-block",onClick:()=>{this.EditPersonalDetails()}},"עריכת פרטים אישיים"),i("a",{href:this.privateAreaLink,class:"personal d-block"},"אזור אישי")),i("li",{class:"dropdown-item"},i("a",{href:"javascript:void(0)",class:"log-out d-block",onClick:()=>{this.InternetLogOut(!0)}},"התנתקות"))))))),!this.checkGetFullNameCookie()&&i("div",{class:"d-flex align-items-center"},i("div",{class:"bttn"},i("a",{class:"title",href:this.privateAreaLink,"aria-label":"אזור אישי"},i("div",null,i("i",{class:"bi-person-circle","aria-hidden":"true"}),i("span",null,"אזור אישי")))))))),i("side-bar",{open:this.isSidebarOpen,onSidebarClosed:t=>this.handleSidebarClosed(t),onSideBarLogout:()=>this.InternetLogOut(!0)}),i("long-session-modal",{isOpen:this.showLongSessionModal,reminderCount:this.longSessionReminderCount,maxReminders:this.LONG_SESSION_MAX_REMINDERS,host:this.getDomain(),onLongSessionRemind:()=>this.handleLongSessionRemind(),onLongSessionOtpSuccess:()=>this.handleLongSessionOtpSuccess(),onLongSessionOtpCancelled:()=>this.triggerLogout()})):i("header",null,i("div",null,i("link",{id:"Negishut",rel:"stylesheet"}),i("details",{ref:t=>this.detailsRef=t},i("summary",{class:"access_button"},"נגישות"),i("div",{role:"list",class:"access_menu"},i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.BlackWhiteMode()},"שחור לבן")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.NightMode(),"aria-label":"ניגודיות כהה "}," ","נגודיות כהה")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.RegularMode()},"תצוגה רגילה")))),i("div",{class:"header-wrapper"},i("div",{class:"header container"},i("div",{class:"row"},i("div",{class:"col-sm-4 d-flex align-items-center header_styles"},i("div",{class:"modal fade",id:"dialogIshurNS",role:"dialog",tabindex:"-1","aria-modal":"true","aria-labelledby":"logoutmodal1","aria-hidden":"true"},i("div",{class:"modal-dialog log-out-modal",role:"document"},i("div",{class:"modal-content"},i("div",{class:"modal-header"},i("h2",{class:"modal-title",id:"logoutmodal1"},"התראה לפני התנתקות")),i("div",{class:"modal-body",id:"messageIshur3"},i("p",null,"בחרת להתנתק ממערכות רשות המסים,",i("br",null),"אם הינך מזוהה באמצעות כרטיס חכם, ניתוק מלא יתבצע לאחר הוצאת הכרטיס מקורא הכרטיס וסגירת הדפדפן.",i("br",null),"אם הינך מזוהה באמצעות מערכת זיהוי לקוח (קוד משתמש), לחיצה על אישור תנתק אותך מהמערכת.")),i("div",{class:"modal-footer"},i("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal","aria-label":"סגירה"},"ביטול"),i("button",{type:"button",class:"btn btn-primary",onClick:()=>this.InternetLogOut(!1)},"אישור"))))),i("a",{href:"http://www.taxes.gov.il/",title:"רשות המיסים"},i("div",null,i("a",{href:"javascript:void(0);",class:"daleg",onClick:()=>this.findTitle()},"דלג לתוכן ראשי"," "),i("img",{src:this.logoI,alt:"רשות המיסים",class:"logoImg"})))),i("div",{class:"col-sm-4 d-flex justify-content-center align-items-center header_styles"},i("p",{id:"appName",class:"appName"},this.project)),i("div",{class:"col-sm-4 header_styles d-flex flex-wrap flex-column align-items-end justify-content-center"},i("div",{class:"text-left"},i("a",{href:"http://www.gov.il/",title:"gov.il"},i("img",{src:this.logoI2,alt:"gov.il",class:"gov"}))),i("nav",{"aria-label":"תפריט משתמש"},i("div",{class:"text-left"},i("a",{id:"privateArea",class:"user",href:this.privateAreaLink},"אזור אישי"),i("a",{id:"iternetBtnLogout",role:"button",href:"javascript:void(0)",class:"login","data-toggle":"modal","data-target":"#dialogIshurNS"},"ניתוק"),i("a",{id:"iternetBtnLogin",href:"javascript:void(0)",role:"button",class:"logout",onClick:()=>this.InternetLogIn()},"התחברות"),i("a",{id:"widenarrow",href:"javascript:void(0)",role:"button",onClick:()=>this.clickWideNarrow(),class:"wide wideInternet item-left"},"פריסה רחבה")))))))),i("long-session-modal",{isOpen:this.showLongSessionModal,reminderCount:this.longSessionReminderCount,maxReminders:this.LONG_SESSION_MAX_REMINDERS,host:this.getDomain(),onLongSessionRemind:()=>this.handleLongSessionRemind(),onLongSessionOtpSuccess:()=>this.handleLongSessionOtpSuccess(),onLongSessionOtpCancelled:()=>this.triggerLogout()})):i("header",null,this.version>=15?i("div",null,i("div",{class:`bottom-0 end-0 h6 pe-3 position-absolute ${this.isFooter?"text-white z-3":""}`}),i("link",{id:"Negishut",rel:"stylesheet"}),i("details",{ref:t=>this.detailsRef=t},i("summary",{class:"access_button"},"נגישות"),i("div",{role:"list",class:"access_menu"},i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.BlackWhiteMode()},"שחור לבן")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.NightMode(),"aria-label":"נגידויות כהה"},"נגודיות כהה")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.RegularMode()},"תצוגה רגילה")))),i("div",{class:"header-wrapper"},i("div",{class:"header-design"},i("div",{class:"logo-name"},i("div",{class:"btn-menu"},i("a",{href:"javascript:void(0);",class:"daleg",onClick:()=>this.findTitle()},"דלג לתוכן ראשי"," "),i("a",{class:"logo-desktop",href:"http://www.taxes.gov.il/",title:"רשות המיסים"},i("img",{"aria-hidden":"true",src:this.logoTaxesAuthority,alt:""}),i("span",null,"רשות המסים בישראל"))),i("span",{class:"app-name"},this.project)),i("div",{class:"d-flex align-items-center"},(this.loggedIn&&this.messages.length>0&&sessionStorage.getItem("userDetails")||this.messages.length>0&&sessionStorage.getItem(`userDetails ${this.project}`))&&i("div",{class:"bttn"},i("a",{href:"#","data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-expanded":"false"},i("button",{type:"button",id:"btnNotifications",class:"bi-bell position-relative","aria-label":"התראות"},this.newMessageCount>0&&i("span",{class:"position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger p-1"},i("span",{class:"visually-hidden"},"unread messages")))),i("ul",{class:"dropdown-menu w-auto"},i("li",{class:"dropdown-item"},i("p",{class:"mb-0"},i("i",{class:"bi bi-bell","aria-hidden":"true"}),i("b",{class:"ps-2"},"התראות (",this.newMessageCount,")"))),i("li",null,i("ul",{class:"messages-container dropdown-item p-0"},t.map(t=>{const n=new Date(t.timestamp),e=Math.round((Date.now()-n.getTime())/36e5);return i("li",{class:t.read?"read":"unread"},i("a",{onClick:()=>{this.markAsRead(t.id)}},i("p",{key:t.id,class:"mb-2",id:"message-id"},i("b",null,t.content," - ",t.id),i("br",null),"לפני ",e," שעות")))}))),this.counterMessages>5&&i("li",{class:"text-center"},i("a",{class:"withColor",href:"#"},"הצגת כל ההתראות")))),i("div",{class:"dropdown bttn",id:"divUserDetails"},this.loggedIn||sessionStorage.getItem(`userDetails ${this.project}`)?i("a",{class:"btn title",href:"#userDatails",role:"button","data-bs-toggle":"collapse","data-toggle":"collapse","aria-expanded":"false","aria-controls":"userDatails"},i("i",{class:"bi-person-circle"}),i("span",null,this.fullName)):void 0,(this.loggedIn&&sessionStorage.getItem("userDetails")||sessionStorage.getItem(`userDetails ${this.project}`))&&i("div",{class:"collapse",id:"userDatails"},i("ul",{class:"dropdown-menu show area-prsonal"},i("li",{class:"dropdown-item"},i("div",{class:"user-datails"},i("p",null,i("b",null,this.fullName),i("br",null),i("span",{class:"h5 pb-0"},this.tz)))),i("li",{class:"dropdown-item"},i("a",{href:"javascript:void(0)",class:"log-out d-block",onClick:()=>this.IntranetLogOut()},"התנתקות"))))))))):i("div",null,i("link",{id:"Negishut",rel:"stylesheet"}),i("details",{ref:t=>this.detailsRef=t},i("summary",{class:"access_button"},"נגישות"),i("div",{role:"list",class:"access_menu"},i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.BlackWhiteMode()},"שחור לבן")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.NightMode(),"aria-label":"מצב לילה"}," ","נגודיות כהה")),i("div",{role:"listitem"},i("a",{href:"javascript:void(0)",tabindex:"0",role:"button",onClick:()=>this.RegularMode()},"תצוגה רגילה")))),i("div",{class:"header-wrapper"},i("div",{class:"header container"},i("div",{class:"row"},i("div",{class:"col-sm-4 header_styles"},i("div",null,i("a",{href:"javascript:void(0);",class:"daleg",onClick:()=>this.findTitle()},"דלג לתוכן ראשי"," "),i("a",{href:"http://www.taxes.gov.il/",title:"רשות המיסים"},i("img",{src:this.logoI,alt:"רשות המיסים",class:"logoImg"})))),i("div",{class:"col-sm-4 d-flex justify-content-center align-items-center header_styles"},i("p",{id:"appName",class:"appName"},this.project)),i("div",{class:"col-sm-4 header_styles d-flex flex-wrap align-items-center justify-content-end"},i("div",null," ",i("span",{style:{color:"#FFFFFF","font-size":"9px"},id:"userName"})),i("div",{class:"text-left",role:"navigation"},i("a",{id:"intrabtn",href:"javascript:void(0)",onClick:()=>this.IntranetLogOut(),class:"logout"},"ניתוק"),i("a",{id:"widenarrow",href:"javascript:void(0)",onClick:()=>this.clickWideNarrow(),class:"wide wideIntranet item-left"},"פריסה רחבה"))))))),i("long-session-modal",{isOpen:this.showLongSessionModal,reminderCount:this.longSessionReminderCount,maxReminders:this.LONG_SESSION_MAX_REMINDERS,host:this.getDomain(),onLongSessionRemind:()=>this.handleLongSessionRemind(),onLongSessionOtpSuccess:()=>this.handleLongSessionOtpSuccess(),onLongSessionOtpCancelled:()=>this.triggerLogout()}))}handleSidebarClosed(t){this.isSidebarOpen=t.detail}handleToggleClick(){if(this.isSidebarOpen=!this.isSidebarOpen,this.toggleSidebar.emit(this.isSidebarOpen),this.isSidebarOpen){const t=document.getElementsByClassName("side-menu-content")[0];t&&(t.setAttribute("tabindex","0"),t.focus(),t.setAttribute("tabindex","-1"))}}cliclMenu(){d(".access_menu").slideToggle(),this.menuStyle={display:"block"}}clickOutSideAreaUser(){var t;const i=null!=(t=document.getElementById("userArea"))?t:document.getElementById("userDatails"),n=document.getElementsByClassName("btn title");if(i&&n&&n.length>0){const t=n[0];document.addEventListener("click",n=>{const e=i.classList.contains("show");!i.contains(n.target)&&e&&t.click()})}}markAsRead(t){this.updatedMessages=this.updatedMessages.map(i=>i.id===t?Object.assign(Object.assign({},i),{read:!0}):i),this.newMessageCount=this.calculateNewMessageCount();const i=new CustomEvent("messagesResponse",{detail:this.updatedMessages});document.dispatchEvent(i)}handlePopState(t){if(window.location.href.includes("login")&&t)if("INTERNET"===this.appEnvironment)this.clearGetFullNameCookie("GetFullName");else{const t=`userDetails ${this.project}`;sessionStorage.removeItem(t),localStorage.removeItem(t),window.location.reload()}}clearGetFullNameCookie(t){document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}handleMessageChange(t){this.updatedMessages=t.map(t=>void 0===t.read?Object.assign(Object.assign({},t),{read:!1}):t),this.newMessageCount=this.calculateNewMessageCount()}calculateNewMessageCount(){return this.updatedMessages.filter(t=>!t.read).length}async getUserDetailsFromCookies(){const t=window.location.host;try{if(t.includes("cvwebt.taxes.gov.il")||t.includes("cvwebqa.taxes.gov.il")||t.includes("secapp.taxes.gov.il")){if((await fetch(`https://${t}/GetFullName`,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"}})).ok){const t=document.cookie.split(";");for(const n of t){const[t,e]=n.trim().split("=");if("GetFullName"===t){try{this.fullName=decodeURIComponent(escape(atob(e)))}catch(i){console.error("Error decoding with atob:",i),this.fullName=e}break}}}}else this.fullName=t.includes("localhost")?"ישראל ישראלי":""}catch(n){console.error("Failed to retrieve GetFullName cookie")}}checkGetFullNameCookie(){const t=document.cookie.split(";");for(let i=0;i<t.length;i++){let n=t[i];for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf("GetFullName="))return!0}return!1}getUserDetailsFromSessionStorage(){try{const t=sessionStorage.getItem("userDetails");if(!t)return;const i=JSON.parse(t);if(Array.isArray(i)){const t=i[0];if(!(t&&t.O_NAM&&t.O_ZHT))return void console.error("Invalid user details structure in array:",i);this.setUserDetails(t),this.restoreLongSessionTimer()}else{if(!i.O_NAM||!i.O_ZHT)return void console.error("Missing required fields (O_NAM, O_ZHT) in userDetails:",i);this.setUserDetails(i),this.restoreLongSessionTimer()}}catch(t){console.error("Failed to parse userDetails from sessionStorage:",t)}}loadUserDetailsFromStorage(){var t,i,n,e;const o=`userDetails ${this.project}`;let r=sessionStorage.getItem(o),s="sessionStorage";if(r||(r=localStorage.getItem(o),s="localStorage"),r)try{const o=JSON.parse(r);if(Array.isArray(o)){const n=o[0];(null===(t=n)||void 0===t?void 0:t.O_NAM)&&(null===(i=n)||void 0===i?void 0:i.O_ZHT)&&this.setUserDetailsFromStorage(n,s)}else(null===(n=o)||void 0===n?void 0:n.O_NAM)&&(null===(e=o)||void 0===e?void 0:e.O_ZHT)&&this.setUserDetailsFromStorage(o,s)}catch(a){console.error(`Failed to parse stored user details from ${s}:`,a),sessionStorage.removeItem(o),localStorage.removeItem(o)}}setUserDetailsFromStorage(t,i){this.fullName=t.O_NAM,this.tz=t.O_ZHT,this.loggedIn=!0;const n={O_NAM:t.O_NAM,O_ZHT:t.O_ZHT},e=`userDetails ${this.project}`;"localStorage"===i?sessionStorage.setItem(e,JSON.stringify(n)):"sessionStorage"===i&&localStorage.setItem(e,JSON.stringify(n))}setUserDetails(t){this.fullName=t.O_NAM,this.tz=t.O_ZHT,this.loggedIn=!0;const i={O_NAM:t.O_NAM,O_ZHT:t.O_ZHT},n=`userDetails ${this.project}`;try{sessionStorage.setItem(n,JSON.stringify(i)),localStorage.setItem(n,JSON.stringify(i))}catch(e){console.error("Failed to store user details:",e)}}startLongSessionTimer(){const t=window.location.hostname.toLowerCase(),i=this.LONG_SESSION_PROTECTED_HOSTNAMES.includes(t),n=window.location.href.includes("taxes-login");i&&!n&&(this.clearLongSessionTimers(),sessionStorage.setItem("longSessionStartTime",Date.now().toString()),this.longSessionTimer=window.setTimeout(()=>{this.handleLongSessionStart()},this.LONG_SESSION_TIMEOUT_MS))}restoreLongSessionTimer(){const t=window.location.hostname.toLowerCase(),i=this.LONG_SESSION_PROTECTED_HOSTNAMES.includes(t),n=window.location.href.includes("taxes-login");if(!i||n)return;const e=sessionStorage.getItem("longSessionReminderCount");if(e&&(this.longSessionReminderCount=parseInt(e,10)),"true"===sessionStorage.getItem("longSessionModalWasOpen"))return void this.handleLongSessionStart();const o=sessionStorage.getItem("longSessionStartTime");if(!o)return void this.startLongSessionTimer();const r=Date.now()-parseInt(o,10),s=this.LONG_SESSION_TIMEOUT_MS-r;this.clearLongSessionTimers(),s<=0?this.handleLongSessionStart():this.longSessionTimer=window.setTimeout(()=>{this.handleLongSessionStart()},s)}handleLongSessionStart(){sessionStorage.setItem("longSessionModalWasOpen","true"),this.showLongSessionModal=!0}handleLongSessionRemind(){sessionStorage.removeItem("longSessionModalWasOpen"),this.showLongSessionModal=!1;const t=this.longSessionReminderCount+1;this.longSessionReminderCount=t,sessionStorage.setItem("longSessionReminderCount",t.toString()),this.longSessionFollowUpTimer=window.setTimeout(()=>{this.handleLongSessionStart()},this.LONG_SESSION_SNOOZE_MS)}handleLongSessionOtpSuccess(){this.longSessionReminderCount=0,this.showLongSessionModal=!1,this.clearLongSessionTimers(),sessionStorage.removeItem("longSessionStartTime"),sessionStorage.removeItem("longSessionReminderCount"),sessionStorage.removeItem("longSessionModalWasOpen"),this.startLongSessionTimer()}clearLongSessionTimers(){null!==this.longSessionTimer&&(clearTimeout(this.longSessionTimer),this.longSessionTimer=null),null!==this.longSessionFollowUpTimer&&(clearTimeout(this.longSessionFollowUpTimer),this.longSessionFollowUpTimer=null),null!==this.longSessionModalInactivityTimer&&(clearTimeout(this.longSessionModalInactivityTimer),this.longSessionModalInactivityTimer=null)}triggerLogout(){this.showLongSessionModal=!1,this.clearLongSessionTimers(),sessionStorage.removeItem("longSessionStartTime"),sessionStorage.removeItem("longSessionReminderCount"),sessionStorage.removeItem("longSessionModalWasOpen"),"INTRANET"===this.appEnvironment?this.IntranetLogOut():this.InternetLogOut(!0)}IntranetLogIn(){const t=window.location.host.toLowerCase();window.location.href=t+"/logon"}async IntranetLogOut(){const t=window.location.hostname.toLowerCase(),i=sessionStorage.getItem("userDetails");if(i){const t=JSON.parse(i);document.cookie=`user=${t.usr}; Path=/`}document.cookie=`masterLogout=${window.location.href}; Path=/`,window.dispatchEvent(new CustomEvent("stencilLogout",{bubbles:!0,composed:!0})),this.logoutEvent.emit(),await this.waitForGracePeriod(),sessionStorage.clear(),localStorage.clear(),sessionStorage.removeItem("longSessionStartTime");const n=t.includes("localhost")?"http://shaamwebt/sign":`http://${t}/sign`;location.replace(n)}waitForGracePeriod(){return new Promise(t=>{setTimeout(t,this.logoutGracePeriodMs)})}InternetLogIn(){const t=window.location.href;location.replace(t+"?idp417")}async InternetLogOut(t){const i=window.location.host.toLowerCase(),n=window.location.hostname.toLowerCase();if(204===this.haveShaamauth&&t){this.logoutInternetfunc.emit(),await this.waitForGracePeriod();const t=`${window.location.href}?idp417`;return void location.replace(t)}const e=i.includes("localhost")?"https://cvwebt.taxes.gov.il/nslogout":`https://${n}/nslogout`;window.dispatchEvent(new CustomEvent("stencilLogout",{bubbles:!0,composed:!0})),this.logoutEvent.emit(),this.logoutInternetfunc.emit(),await this.waitForGracePeriod(),sessionStorage.clear(),localStorage.clear(),sessionStorage.removeItem("longSessionStartTime"),this.clearGetFullNameCookie("GetFullName"),window.location.href=e}setBtn(){let t,i;i=document.getElementById("iternetBtnLogin"),t=document.getElementById("iternetBtnLogout");const n=document.getElementById("intrabtn"),e=document.getElementById("widenarrow");if("INTERNET"==this.appEnvironment&&this.version<15){const n=this.getDomain();fetch(n+"/gdIsInternetUserloggedIn/api/isloggedin",{credentials:"include"}).then(n=>{this.haveShaamauth=n.status,201==this.haveShaamauth?(i.className="login d-inline-block",this.btnInter="התחברות",t.className="logout d-none",this.btnInter=""):(t.className="logout d-inline-block",this.btnInter="ניתוק",i.className="logint d-none",this.btnInter="")})}else"INTRANET"==this.appEnvironment&&this.version<15&&(this.widebtnbool&&(this.widebtnstr="פריסה רחבה",e.classList.add("wide")),n.className="logout d-inline-block",this.btnInter="ניתוק",this.widebtnbool&&(this.widebtnstr="פריסה רחבה",e.classList.add("wide")))}onwideboolonload1(t){t&&this.clickWideNarrowonload()}clickWideNarrowonload(){document.getElementsByClassName("page-content"),d(".frame").css({"max-width":"100%"}),d("#widenarrow").removeClass("wide"),d("#widenarrow").addClass("narrow"),d("#widenarrow").text("פריסה רגילה"),d(".navbar").css({"background-repeat":"repeat-x","max-width":"100%"}),d(".navbar-wrapper").css({"background-repeat":"repeat-x"}),d(".header").css({"max-width":"100%"}),document.getElementsByClassName("page-content")[0].classList.add("wideWidth"),d(".navbar").css({"max-width":"100%"}),d(".navbar-wrapper").css({"max-width":"100%"})}clickWideNarrow(){if(document.getElementsByClassName("page-content"),this.widebtnbool){d("#widenarrow").removeClass("wide"),d("#widenarrow").addClass("narrow"),d("#widenarrow").text("פריסה רגילה"),d(".navbar").css({"background-repeat":"repeat-x"}),d(".navbar-wrapper").css({"background-repeat":"repeat-x"}),d(".header-wrapper").css({"max-width":"100%"});const t=document.getElementsByClassName("page-content")[0];t.classList.remove("regularWidth"),t.classList.add("wideWidth")}else{d("#widenarrow").removeClass("narrow"),d("#widenarrow").addClass("wide"),d("#widenarrow").text("פריסה רחבה"),d(".navbar").css({"background-repeat":"no-repeat"}),d(".navbar-wrapper").css({"background-repeat":"no-repeat"}),d(".navbar-wrapper").css({"max-width":"100%"});const t=document.getElementsByClassName("page-content")[0];t.classList.remove("wideWidth"),t.classList.add("regularWidth")}this.widebtnbool=!this.widebtnbool}delay(t){return new Promise(i=>{setTimeout(()=>{i()},t)})}getHost(){let t;this.host=window.location.host.toLowerCase(),t=this.host.includes("localhost")?"shaamwebt":this.host;let i=location.protocol;this.logoTaxesAuthority=i+"//"+t+"/ShaamStylesLib/images/logo_TaxesAuthority.png",this.logoI=i+"//"+t+"/ShaamStylesLib/images/logo_shaam_gov2.png",this.logoI2=i+"//"+t+"/ShaamStylesLib/images/logo_shaam_gov1.png"}getDomain(){return this.host=-1!==window.location.host.search("localhost")?"http://shaamwebt":"..",this.host}EditPersonalDetails(){const t=-1!==window.location.host.search("localhost")?"cvwebt.taxes.gov.il":window.location.host;window.location.href=`https://${t}/sr-ezor-ishi/main/myDetailes`}BlackWhiteMode(){const t=location.protocol+"//"+window.location.hostname.toLowerCase()+"/ShaamStylesLib/accessibility/monochrome.css";d("head").find("[data-bss]").remove(),document.getElementById("Negishut").setAttribute("href",t),this.detailsRef&&"open"in this.detailsRef&&(this.detailsRef.open=!1)}NightMode(){const t=location.protocol+"//"+window.location.hostname.toLowerCase()+"/ShaamStylesLib/accessibility/contrast.css";d("head").find("[data-bss]").remove(),document.getElementById("Negishut").setAttribute("href",t),this.detailsRef&&"open"in this.detailsRef&&(this.detailsRef.open=!1)}RegularMode(){const t=location.protocol+"//"+window.location.hostname.toLowerCase()+"/ShaamStylesLib/css/styleShaam-2-0-0.css";d("head").find("[data-bss]").remove(),document.getElementById("Negishut").setAttribute("href",t),this.detailsRef&&"open"in this.detailsRef&&(this.detailsRef.open=!1)}handleKeyDown(t){var i;"Escape"===t.key&&this.detailsRef&&"open"in this.detailsRef&&this.detailsRef.open&&(this.detailsRef.open=!1,null===(i=this.detailsRef.querySelector("summary"))||void 0===i||i.focus())}findTitle(){var t;(t=document.getElementById("page-content")).setAttribute("tabindex","-1"),t.focus(),window.scrollTo(0,0)}static get watchers(){return{messages:["handleMessageChange"],wideboolonload:["onwideboolonload1"]}}static get style(){return".modal-header{display:inline!important}.header-design .dropdown-menu{left:-1.875rem!important;width:13.75rem}\@media (max-width:700px){.header-design .dropdown-menu{left:-.625rem!important}}.header-design .dropdown-menu .dropdown-item.active,.header-design .dropdown-menu .dropdown-item:active{color:var(--text-color)!important;background-color:var(--white)!important}.btn-menu{margin-right:0!important;margin-bottom:0!important;width:auto;min-width:0!important;min-height:0!important}"}},f=class{constructor(i){t(this,i),this.isOpen=!1,this.reminderCount=0,this.maxReminders=3,this.host="",this.showOtpModal=!1,this.longSessionRemind=e(this,"longSessionRemind",7),this.longSessionOtp=e(this,"longSessionOtp",7),this.longSessionOtpCancelled=e(this,"longSessionOtpCancelled",7),this.longSessionOtpSuccess=e(this,"longSessionOtpSuccess",7)}componentDidUpdate(){var t,i,n;this.isOpen&&(null===(n=null===(i=null===(t=this.el)||void 0===t?void 0:t.querySelector('[role="dialog"]'))||void 0===i?void 0:i.querySelector("button:not([disabled]), input:not([disabled])"))||void 0===n||n.focus())}render(){if(!this.isOpen)return null;const t=this.maxReminders-this.reminderCount;return i("div",{class:"modal d-block",role:"dialog","aria-modal":"true","aria-labelledby":"long-session-title","aria-describedby":"long-session-desc",tabindex:"-1",onKeyDown:t=>this.handleKeyDown(t),style:{backgroundColor:this.showOtpModal?"transparent":"rgba(0,0,0,0.5)",position:"fixed",top:"0",left:"0",width:"100%",height:"100%",zIndex:"1050"}},!this.showOtpModal&&i("div",{class:"modal-dialog modal-dialog-centered",role:"document"},i("div",{class:"modal-content"},i("div",{class:"d-flex justify-content-between align-items-center p-3 border-bottom",style:{direction:"rtl"}},i("h2",{class:"modal-title mb-0",id:"long-session-title"},"פג תוקף האימות")),i("div",{class:"modal-body",id:"long-session-desc",style:{textAlign:"right"}},i("p",null,"תוקף האימות הנוכחי הסתיים . ",i("br",null),"כדי להמשיך בפעילות, יש לבצע אימות זהות מחדש באמצעות קוד חד פעמי.")),i("div",{class:"modal-footer",role:"group","aria-label":"אפשרויות זיהוי"},t>0&&i("button",{type:"button",class:"btn btn-secondary","aria-label":"הזכר לי מאוחר יותר",onClick:()=>this.longSessionRemind.emit()},"הזכר לי מאוחר יותר"),i("button",{type:"button",class:"btn btn-primary","aria-label":"שלח קוד אימות",onClick:()=>this.onVerifyOtp()},"שלח קוד אימות")))),i("otp-modal",{isOpen:this.showOtpModal,host:this.host,onOtpSuccess:()=>this.handleOtpSuccess(),onOtpCancelled:()=>this.handleOtpCancelled()}))}onVerifyOtp(){this.showOtpModal=!0}handleOtpSuccess(){this.showOtpModal=!1,this.longSessionOtpSuccess.emit()}handleOtpCancelled(){this.showOtpModal=!1,this.longSessionOtpCancelled.emit()}handleKeyDown(t){if("Tab"!==t.key)return;const i=Array.from(t.currentTarget.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])'));if(0===i.length)return;const n=i[0],e=i[i.length-1];t.shiftKey?document.activeElement===n&&(t.preventDefault(),e.focus()):document.activeElement===e&&(t.preventDefault(),n.focus())}get el(){return n(this)}},p=class{constructor(i){t(this,i),this.isOpen=!1,this.host="",this.authToken="",this.view="sending",this.identifier="",this.destination="",this.otpValue="",this.verifying=!1,this.errorMessage=null,this.touched=!1,this.failureCount=0,this.showOtpValue=!1,this.MAX_FAILURES=5,this.otpSuccess=e(this,"otpSuccess",7),this.otpCancelled=e(this,"otpCancelled",7)}get API_BASE(){return`${this.host}/srOTPMgmtApi/v1/Otp`}get authHeaders(){return{"Content-Type":"application/json"}}componentDidUpdate(){var t,i;this.isOpen&&"sending"===this.view&&!this.identifier&&(this.sendOtp(),null===(i=null===(t=this.el)||void 0===t?void 0:t.querySelector("button:not([disabled]), input:not([disabled])"))||void 0===i||i.focus())}componentDidLoad(){this.isOpen&&this.sendOtp()}async sendOtp(){this.view="sending",this.errorMessage=null;try{const t=await fetch(`${this.API_BASE}/CreateOtpCts`,{method:"POST",headers:this.authHeaders,body:JSON.stringify({appCode:1006})});if(!t.ok)throw new Error(`HTTP ${t.status}`);const i=await t.json();this.identifier=i.identifier,this.destination=i.text,this.view="input"}catch(t){console.error("[OtpModal] Failed to send OTP:",t),this.view="error-send",this.errorMessage="שגיאה בשליחת הקוד. אנא נסה שוב."}}async verifyOtp(){var t,i,n,e;this.verifying=!0,this.errorMessage=null;try{const o=await fetch(`${this.API_BASE}/CheckOtp`,{method:"POST",headers:this.authHeaders,body:JSON.stringify({identifier:this.identifier,otp:this.otpValue,appCode:1006})});if(o.ok)return this.verifying=!1,void this.otpSuccess.emit();if(310===o.status){const t=window.location.pathname.split("/")[1]||"",i=`${window.location.origin}/${t}`;return void(window.location.href=i)}if(402===o.status){const r=await o.json().catch(()=>({}));return this.failureCount++,this.verifying=!1,this.otpValue="",this.touched=!1,this.failureCount>this.MAX_FAILURES?void this.otpCancelled.emit():(this.errorMessage=this.getErrorMessage(null===(t=r)||void 0===t?void 0:t.code),void("OTP_EXPIRED"!==(null===(i=r)||void 0===i?void 0:i.code)&&"OTP_ATTEMPTS_EXCEEDED"!==(null===(n=r)||void 0===n?void 0:n.code)&&"1001"!==(null===(e=r)||void 0===e?void 0:e.code)||await this.requestNewCode()))}this.verifying=!1,this.errorMessage="שגיאת שרת. אנא נסה שוב מאוחר יותר."}catch(o){console.error("[OtpModal] Verify OTP failed:",o),this.verifying=!1,this.errorMessage="שגיאת שרת. אנא נסה שוב מאוחר יותר."}}async requestNewCode(){this.otpValue="",this.touched=!1,this.errorMessage=null,this.failureCount=0,await this.sendOtp()}getErrorMessage(t){var i;return null!=(i={OTP_INVALID:"הקוד שהוזן אינו תקין. יש לנסות שוב.",OTP_EXPIRED:"הקוד אינו תקף. נשלח אליך קוד חדש.",1001:"הקוד אינו תקף. נשלח אליך קוד חדש.",OTP_ATTEMPTS_EXCEEDED:"חרגת ממספר הניסיונות. נשלח אליך קוד חדש."}[t])?i:"הקוד שהוזן אינו תקין. יש לנסות שוב."}handleInput(t){const i=t.target,n=i.value.replace(/\D/g,"").slice(0,6);this.otpValue=n,i.value=n}handleSubmit(t){t.preventDefault(),this.touched=!0,/^\d{6}$/.test(this.otpValue)&&this.verifyOtp()}handleCancel(){this.otpCancelled.emit(),this.resetState()}resetState(){this.view="sending",this.identifier="",this.destination="",this.otpValue="",this.verifying=!1,this.errorMessage=null,this.touched=!1,this.failureCount=0}handleKeyDown(t){if("Tab"!==t.key)return;const i=Array.from(t.currentTarget.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])'));if(0===i.length)return;const n=i[0],e=i[i.length-1];t.shiftKey?document.activeElement===n&&(t.preventDefault(),e.focus()):document.activeElement===e&&(t.preventDefault(),n.focus())}render(){return this.isOpen?i(o,null,i("div",{class:"modal d-block",role:"dialog","aria-modal":"true","aria-labelledby":"otp-modal-title","aria-describedby":"otp-modal-desc",tabindex:"-1",onKeyDown:t=>this.handleKeyDown(t),style:{backgroundColor:"rgba(0,0,0,0.5)",position:"fixed",top:"0",left:"0",width:"100%",height:"100%",zIndex:"1060"}},i("div",{class:"modal-dialog modal-dialog-centered",role:"document"},i("div",{class:"modal-content"},i("div",{class:"d-flex justify-content-between align-items-center p-3 border-bottom w-100"},i("h2",{class:"modal-title mb-0",id:"otp-modal-title"},"אימות קוד חד-פעמי"),i("button",{type:"button",class:"btn-close","aria-label":"סגירה",style:{margin:"0"},onClick:()=>this.handleCancel()})),i("div",{class:"modal-body d-flex flex-column gap-3",dir:"rtl"},this.errorMessage&&this.failureCount!==this.MAX_FAILURES-1&&i("div",{id:"otp-error",class:"alert-i alert-i--error bi",role:"alert","aria-live":"assertive"},i("span",null,this.errorMessage)),this.failureCount===this.MAX_FAILURES-1&&i("div",{class:"alert-i alert-i--warning bi",role:"alert","aria-live":"assertive"},"נותר ניסיון אחד נוסף לפני שליחת קוד חדש"),"sending"===this.view&&i("div",{class:"text-center py-3"},i("div",{class:"spinner-border withColor",role:"status","aria-label":"שולח קוד..."},i("span",{class:"visually-hidden"},"שולח קוד...")),i("p",{class:"mt-2 text-muted"},"שולח קוד לטלפון...")),this.destination&&i("div",{class:"text-center",id:"otp-modal-desc"},i("p",{class:"mb-0"},"שלחנו קוד בן 6 ספרות אל"," ",i("strong",{class:"withColor"},i("i",{"aria-hidden":"true",class:"bi bi-phone-fill me-1"}),this.destination),".",i("br",null),"נא להזין אותו כאן")),i("form",{onSubmit:t=>this.handleSubmit(t),novalidate:!0},i("label",{class:"visually-hidden",htmlFor:"otp-input"},"קוד אימות"),i("div",{style:{position:"relative"}},i("input",{id:"otp-input",type:this.showOtpValue?"text":"password",inputMode:"numeric",autofocus:!0,class:`form-control text-center ${this.touched&&!/^\d{6}$/.test(this.otpValue)?"is-invalid":""}`,value:this.otpValue,onInput:t=>this.handleInput(t),maxLength:6,autocomplete:"one-time-code",required:!0,"aria-required":"true","aria-describedby":this.errorMessage?"otp-error":void 0,"aria-invalid":this.touched&&!/^\d{6}$/.test(this.otpValue)?"true":"false",disabled:this.verifying,style:{paddingLeft:"2.5rem"}}),i("button",{type:"button","aria-label":this.showOtpValue?"הסתר קוד":"הצג קוד",onClick:()=>{this.showOtpValue=!this.showOtpValue},style:{position:"absolute",left:"0.75rem",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",padding:"0",color:"#6c757d"}},i("i",{"aria-hidden":"true",class:this.showOtpValue?"bi bi-eye-slash":"bi bi-eye"}))),this.touched&&!/^\d{6}$/.test(this.otpValue)&&i("div",{class:"invalid-feedback d-block",role:"alert","aria-live":"polite"},0===this.otpValue.length?"יש להזין קוד":"הקוד חייב להכיל 6 ספרות בלבד"),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary",type:"submit",disabled:this.verifying||!/^\d{6}$/.test(this.otpValue),"aria-label":"אשר קוד OTP"},this.verifying?i("span",null,i("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"טוען..."):i("span",null,"אישור"))))))))):null}get el(){return n(this)}},v=class{constructor(i){t(this,i),this.open=!1,this.sections={"דף הבית":[{icon:"bi-house-door",link:this.getDomain()+"/sr-ezor-ishi",inWindow:!0,projectName:"האזור האישי שלי ברשות המסים",cssClass:"withColor main-home"}],"מידע חשוב":[{icon:"bi-person",link:this.getDomain()+"/sr-ezor-ishi/main/myDetailes?fromsystem=sideMenue",inWindow:!1,projectName:"הפרטים שלי"},{icon:"bi-file-earmark-text",link:this.getDomain()+"/sr-ezor-ishi/main/approvals-and-certificates?fromsystem=sideMenue",inWindow:!1,projectName:"אישורים ותעודות"},{icon:"bi-chat",link:this.getDomain()+"/sr-crm-pniyot/main/historyIncident?fromSystem=1",inWindow:!1,projectName:"הפניות שלי"},{icon:"bi-envelope",link:this.getDomain()+"/sr-ezor-ishi/main/letters?fromsystem=sideMenue",inWindow:!1,projectName:"המכתבים שלי"},{icon:"bi-chat-right",link:this.getDomain()+"/sr-hodaot/main/clientMessages?fromsystem=ezorIshi",inWindow:!1,projectName:"ההודעות שלי"},{icon:"bi-calendar4-range",link:"https://myvisit.com/#!/home/provider/195",inWindow:!1,projectName:"זימון תורים"}],"פפא":[{icon:"bi-flag",link:this.getDomain()+"/SrSherutAtzmi/#/compensationHostilityActions",inWindow:!0,projectName:"קרן פיצויים ופעולות איבה"}],"פעולות":[{icon:"bi-database",link:this.getDomain()+"/nikYtr",inWindow:!1,projectName:"ריכוז יתרות"},{icon:"bi-wallet2",link:this.getDomain()+"/sr-ezor-ishi/main/reports?fromsystem=sideMenue",inWindow:!1,projectName:"דיווחים ותשלומים"},{icon:"bi-people",link:this.getDomain()+"/sr-hasmacha/main/MainHasmacha",inWindow:!1,projectName:"הרשאות לביצוע פעולות"},{icon:"bi-credit-card",link:this.getDomain()+"/sr-ezor-ishi/main/main-page-bank?fromsystem=sideMenue",inWindow:!1,projectName:"חשבונות בנק ואמצעי תשלום"},{icon:"bi-heart",link:this.getDomain()+"/SrSherutAtzmi/#/exhaustionRights?fromsystem=sideMenue",inWindow:!1,projectName:"מיצוי זכויות"},{icon:"bi-grid",link:this.getDomain()+"/sr-ezor-ishi/main/reporting-and-payment-links?fromsystem=sideMenue",inWindow:!1,projectName:"כל הפעולות ברשות המסים"}],"נדלן":[{icon:"bi-buildings",link:this.getDomain()+"/sr-ezor-ishi/main/real-estate-transactions?fromsystem=sideMenue",inWindow:!1,projectName:"הנדל''ן שלי"}],"שרות ותמיכה":[{icon:"bi-question-circle",isSupport:!0,projectName:"מרכז התמיכה",cssClass:"support-aria"}],"ניתוק":[{icon:"bi-box-arrow-right",projectName:"יציאה מהאזור האישי",isLogout:!0,cssClass:"fw-light"}]},this.showModal=!1,this.showSupport=!1,this.isMobile=!1,this.activeItemIndex=0,this.isHovered=!1,this.Headers=["דף הבית","מידע חשוב","פפא","פעולות","נדלן","שרות ותמיכה","ניתוק"],this.isMobileTilteFocus=!1,this.sidebarClasses=["side-bar","d-flex","flex-column","flex-shrink-0","d-none","d-lg-block",this.open?"side-bar--open":"side-bar--close"].join(" "),this.checkIfMobile=()=>{this.isMobile=window.innerWidth<=992},this.sidebarClosed=e(this,"sidebarClosed",7),this.sideBarLogout=e(this,"sideBarLogout",7)}handleModalToggle(t){this.showSupport=t.detail}getDomain(){location,window.location.hostname.toLowerCase();return-1!==window.location.host.search("localhost")?"https://cvwebt.taxes.gov.il":".."}async componentWillLoad(){this.checkIfMobile(),this.isMobile&&(this.open=!1,this.sidebarClosed.emit(!1)),window.addEventListener("resize",this.checkIfMobile)}disconnectedCallback(){window.removeEventListener("resize",this.checkIfMobile)}watchOpenState(t){var i,n,e,o,r,s,a,l;this.open=t;const u=document.querySelector("app-main");u&&(this.open?(null===(n=null===(i=u)||void 0===i?void 0:i.classList)||void 0===n||n.add("sidebar-open"),null===(o=null===(e=u)||void 0===e?void 0:e.classList)||void 0===o||o.remove("sidebar-closed")):(null===(s=null===(r=u)||void 0===r?void 0:r.classList)||void 0===s||s.add("sidebar-closed"),null===(l=null===(a=u)||void 0===a?void 0:a.classList)||void 0===l||l.remove("sidebar-open")))}onMouseEnter(){this.isHovered=!0}onMouseLeave(){this.isHovered=!1}handleKeyDown(t){this.open&&("Escape"!==t.key||this.handleCloseButtonClick())}handleCloseButtonClick(t=!0){var i;this.open=!1,this.sidebarClosed.emit(this.open),this.isMobileTilteFocus=!1,t&&(null===(i=document.querySelector('[aria-controls="mobileOffcanvas"]'))||void 0===i||i.focus())}async openSupport(){await this.modalRef.open(),this.showSupport=!0,setTimeout(()=>{const t=document.getElementById("modalTitle");t&&(t.setAttribute("tabindex","0"),t.focus(),t.setAttribute("tabindex","-1"))},100)}openWindow(t,i,n){const e=window.location.href.toLowerCase().includes("srsherutatzmi")||window.location.href.toLowerCase().includes("sr-ezor-ishi"),o=t.toLowerCase().includes("srsherutatzmi")||t.toLowerCase().includes("sr-ezor-ishi");if(sessionStorage.setItem("sidebar-focus-item",n),this.isMobile&&this.handleCloseButtonClick(!1),!e||!o)return e&&!o?(window.open(t,"_blank"),void this.restorePendingFocus()):void(i?window.open(t,"_self"):(window.open(t,"_blank"),this.restorePendingFocus()));window.open(t,"_self")}async restorePendingFocus(){const t=sessionStorage.getItem("sidebar-focus-item");if(!t)return;this.open||this.isMobile||(this.open=!0,this.sidebarClosed.emit(this.open));const i=performance.now()+5e3,n=()=>{const e=document.getElementById(t);(!e||"0"!==e.getAttribute("tabindex")||(e.focus(),document.activeElement!==e))&&performance.now()<i?requestAnimationFrame(n):sessionStorage.removeItem("sidebar-focus-item")};requestAnimationFrame(n)}componentDidLoad(){this.restorePendingFocus()}componentDidUpdate(){if(!this.isMobileTilteFocus){const t=document.getElementById("menuMobileTilte");if(!t)return;"block"==window.getComputedStyle(t).display&&(t.setAttribute("tabindex","0"),t.focus(),this.isMobileTilteFocus=!0,t.setAttribute("tabindex","-1"))}}logOut(){this.sideBarLogout.emit()}renderMenuItem(t,n,e,o,r){const s=`menuItem-${r.replace(/\s+/g,"-")}-${n}`;return i("div",{role:e?"listitem":void 0,key:n},t.subMenu?i("details",{tabindex:this.open||this.isHovered?void 0:"-1"},i("summary",{"aria-hidden":this.open||this.isHovered?null:"true"},i("i",{class:`${t.icon} i-menu`,"aria-hidden":"true"}),i("span",null,t.projectName)),i("div",null,this.renderSection(t.subMenu,""))):i("span",null,i("span",t.isSupport||t.isLogout?{id:s,"aria-label":this.open||this.isHovered?`${t.projectName}`:null,role:this.open||this.isHovered?"button":"none","aria-haspopup":(this.open||this.isHovered)&&t.isSupport?"dialog":null,tabindex:this.open||this.isHovered?"0":void 0,onClick:this.open||this.isHovered?()=>t.isSupport?this.openSupport():this.logOut():void 0,onKeyDown:i=>{"Enter"===i.key&&(this.open||this.isHovered)&&(t.isSupport?this.openSupport():this.logOut())},class:o+" item-link"}:{id:s,role:this.open||this.isHovered?"link":"none",tabindex:this.open||this.isHovered?"0":void 0,"aria-label":this.open||this.isHovered?`${t.projectName}`:null,onClick:this.open||this.isHovered?()=>this.openWindow(t.link,t.inWindow,s):void 0,onKeyDown:i=>{"Enter"===i.key&&(this.open||this.isHovered)&&this.openWindow(t.link,t.inWindow,s)},class:o+" item-link"},i("i",{class:`${t.icon} i-menu`,"aria-hidden":"true"}),i("span",null,t.projectName))))}renderSection(t,n){return i("div",{class:"border-bottom",role:this.open||this.isHovered?"listitem":null},t.length<2?t.map((t,i)=>this.renderMenuItem(t,i,!1,t.cssClass,n)):i("ul",{"aria-label":n},t.map((t,i)=>this.renderMenuItem(t,i,!0,t.cssClass,n))))}renderSidebar(){const t=this.open,n=this.isHovered;return i("div",null,i("aside",{class:`side-menu ${t?"open":n?"hover":"closed"}`,"aria-label":"תפריט צד"},i("div",{class:"side-menu-content"},i("nav",{"aria-label":"תפריט לפעולות עיקריות באזור האישי"},i("ul",{"aria-label":"אזורי התפריט","aria-hidden":t||n?null:"true",role:t||n?null:"none"},Object.keys(this.sections).map(t=>this.renderSection(this.sections[t],t)))))),i("support-modal",{isOpen:this.showSupport,ref:t=>this.modalRef=t}))}renderOffcanvas(){return i("div",null,this.open?i("div",{class:"offcanvas-backdrop fade show"}):null,i("div",{class:`offcanvas offcanvas-start side-menu-mobile w-60 overflow-y-auto ${this.open?"show":""}`,role:"dialog","aria-modal":"true",tabindex:"-1",id:"mobileOffcanvas","aria-labelledby":"menuMobileTilte",style:{display:this.open?"block":"none",transition:"transform 0.3s ease-in-out"}},i("div",{class:"offcanvas-header position-relative"},i("h2",{class:"offcanvas-title",id:"menuMobileTilte","aria-label":"תפריט לפעולות עיקריות באזור האישי"},"תפריט")),i("div",{class:"offcanvas-body"},i("nav",{"aria-label":"תפריט לפעולות עיקריות באזור האישי"},i("ul",{"aria-label":"אזורי התפריט",class:"side-menu-content-mobile"},Object.keys(this.sections).map(t=>this.renderSection(this.sections[t],t))))),i("button",{type:"button",class:"bi-x-lg end-0 i-btn-frame m-1 position-absolute top-0",onClick:()=>this.handleCloseButtonClick(),"aria-label":"סגירה"})),i("support-modal",{isOpen:this.showSupport,ref:t=>this.modalRef=t}))}render(){return i("div",null,this.isMobile?this.renderOffcanvas():this.renderSidebar())}static get watchers(){return{open:["watchOpenState"]}}static get style(){return""}},m=class{constructor(i){t(this,i),this.isOpen=!1,this.hostUrl=this.getHost(),this.toggleModal=e(this,"toggleModal",7)}componentDidUpdate(){this.isOpen&&this.h2Ref&&requestAnimationFrame(()=>{this.h2Ref.focus()})}setTitle(t){document.title=t}openSupport(){var t=(location,window.location.hostname.toLowerCase());t=-1!==window.location.host.search("localhost")?"https://cvwebt.taxes.gov.il/sr-crm-pniyot/main":"../sr-crm-pniyot/main",window.open(t,"_blank")}close(){this.toggleModal.emit(!1),this.isOpen=!1,requestAnimationFrame(()=>{this.triggerButton&&this.triggerButton.focus()})}async open(){this.triggerButton=document.activeElement,this.isOpen=!0}getHost(){let t;return this.host=window.location.host.toLowerCase(),t=this.host.includes("localhost")?"cvwebt.taxes.gov.il":this.host,location.protocol+"//"+t+"/ShaamStylesLib/illustrations/"}handleKeyDown(t){this.isOpen&&("Escape"!==t.key?"Tab"===t.key&&this.handleTabKey(t):this.close())}handleTabKey(t){const i=document.getElementById("spportModal");if(!i)return;const n=i.querySelectorAll('button:not([disabled]), a[href]:not([href="javascript:void(0)"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'),e=Array.from(n);if(0===e.length)return;const o=e[0],r=e[e.length-1];t.shiftKey?document.activeElement===o&&(t.preventDefault(),r.focus()):document.activeElement===r&&(t.preventDefault(),o.focus())}render(){return this.isOpen?i("div",null,i("div",{"aria-hidden":"true",class:`modal-backdrop fade ${this.isOpen?"show":"d-none"}`}),i("div",{tabindex:"-1","aria-modal":"true","aria-labelledby":"supportModal",role:"dialog",class:`d-block modal fade top-0 ${this.isOpen?"show":"d-none"}`},i("div",{id:"spportModal",role:"document",class:"modal-dialog mw-xxl-40 p-3"},i("div",{class:"modal-content position-relative p-3"},i("div",{class:"d-flex justify-content-center modal-header pb-0"},i("img",{class:"w-xxl-50",src:`${this.hostUrl}support-stork.svg`,alt:""})),i("div",{class:"modal-body pt-0"},i("div",{class:"text-center"},i("h2",{id:"supportModal",tabindex:"-1",ref:t=>this.h2Ref=t},"נשמח לעזור לך"),i("p",null,i("div",{class:"medium"},"אפשר לכתוב לנו"," ",i("a",{class:"withColor d-inline-flex",href:"javascript:void(0);",onClick:this.openSupport},"במערכת הפניות")),i("div",{class:"mt-4 h5 text-start"},"אם לא מצאת תשובה אפשר להתקשר אלינו:"),i("div",{class:"d-flex justify-content-between align-items-center flex-wrap mb-2"},i("div",null,"מרכז המידע והשירותים המקוונים (עברית)"),i("div",{class:"withColor"},i("a",{href:"tel:*4954",class:"withColor d-inline-flex",dir:"ltr"},"*4954")," ","בימים א'-ה'")),i("div",{class:"d-flex justify-content-between align-items-center flex-wrap"},i("div",null,"מוקד מיסוי מקרקעין"),i("div",{class:"withColor"},i("a",{href:"tel:025656400",class:"withColor d-inline-flex"},"02-5656400")," ","שלוחה 2 בימים א'-ה'"))))),i("button",{type:"button","aria-label":"סגירת חלונית",class:"bi-x-lg end-0 i-btn-frame m-1 position-absolute top-0",onClick:()=>this.close()}))))):null}get host2(){return n(this)}static get style(){return""}};export{r as additional_page,a as class_scanner_component,l as footer_component,h as header_component,f as long_session_modal,p as otp_modal,v as side_bar,m as support_modal};